Skip to content

Commit

Permalink
fix: tooltip pos adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Dec 3, 2024
1 parent 35a3dd0 commit 002e7fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/components/manage-productions/line-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ export const LineTable = ({
};
}, [removeLine]);

// TODO: Remove logs
console.log("TOOLTIP POSITION", tooltipPosition);
console.log("TOOLTIP TEXT:", tooltipText);

return (
<TableContainer lines={lines}>
<TableBody>
Expand Down
6 changes: 3 additions & 3 deletions src/components/manage-productions/manage-productions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const SubFlexContainer = styled.div`
${isMobile ? "" : `align-items: flex-start;`}
`;

const FlexContainer = styled.div<MobileLayout>`
const FlexContainer = styled.div`
margin-top: 2rem;
display: flex;
Expand Down Expand Up @@ -171,7 +171,7 @@ export const ManageProductions = () => {
setTooltipText(fullText);

setTooltipPosition({
top: rect.top - 10,
top: rect.top + 5,
left: rect.left + 10,
visibility: "visible",
opacity: 1,
Expand Down Expand Up @@ -274,7 +274,7 @@ export const ManageProductions = () => {
</strong>
</DecorativeLabel>
)}
<FlexContainer isMobile={isMobile}>
<FlexContainer>
<SubFlexContainer>
<SubContainers isMobile={isMobile}>
{isMobile && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type TLongPressToTalkButton = {
};

const Button = styled(PrimaryButton)`
background: rgba(50, 56, 59, 100);
background: rgba(50, 56, 59, 1);
color: white;
border: 0.2rem solid #6d6d6d;
position: relative;
Expand Down

0 comments on commit 002e7fa

Please sign in to comment.