Skip to content

Commit

Permalink
fix: tooltip placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Dec 3, 2024
1 parent b699dae commit 35a3dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/manage-productions/line-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const TableContainer = styled.div`
border: 0.1rem solid #6d6d6d;
border-radius: 0.5rem;
overflow-y: scroll;
width: ${isMobile ? "100%" : "55rem"};
width: ${isMobile ? "100%" : "45rem"};
max-height: 35rem;
border-bottom: ${({ lines }: { lines: TLine[] | undefined }) =>
lines && lines.length === 0 ? "0.1rem solid #6d6d6d" : "none"};
Expand Down Expand Up @@ -41,7 +41,7 @@ const TableRow = styled.tr`
`;

const TableCell = styled.td`
padding: 1.8rem;
padding: 1.5rem;
border: 0.1rem solid #6d6d6d;
border-left: none;
border-right: none;
Expand Down
4 changes: 2 additions & 2 deletions src/components/manage-productions/manage-productions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export const ManageProductions = () => {
setTooltipText(fullText);

setTooltipPosition({
top: rect.top + window.scrollY + rect.height + 5,
left: rect.left + window.scrollX,
top: rect.top - 10,
left: rect.left + 10,
visibility: "visible",
opacity: 1,
});
Expand Down

0 comments on commit 35a3dd0

Please sign in to comment.