From ae6acdcdd5872a5caa51cadb25b871c949df26e1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 23 Nov 2025 13:44:56 +0100 Subject: [PATCH] fix: styles --- .../src/components/FormulaBar/FormulaBar.tsx | 35 +++++++------------ 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/webapp/IronCalc/src/components/FormulaBar/FormulaBar.tsx b/webapp/IronCalc/src/components/FormulaBar/FormulaBar.tsx index 767ec90..df6a06b 100644 --- a/webapp/IronCalc/src/components/FormulaBar/FormulaBar.tsx +++ b/webapp/IronCalc/src/components/FormulaBar/FormulaBar.tsx @@ -43,7 +43,7 @@ function FormulaBar(properties: FormulaBarProps) { return ( - + - {cellAddress} - + {cellAddress} + - + @@ -148,7 +148,7 @@ const Container = styled("div")` height: ${FORMULA_BAR_HEIGHT}px; `; -const AddressContainer = styled("div")` +const AddressContainer = styled("div")<{ $active?: boolean }>` color: ${theme.palette.common.black}; font-style: normal; font-size: 12px; @@ -159,12 +159,15 @@ const AddressContainer = styled("div")` gap: 2px; border-radius: 4px; margin-left: 8px; + cursor: pointer; + background-color: ${(props) => + props.$active ? theme.palette.action.selected : "transparent"}; &:hover { background-color: ${theme.palette.grey["100"]}; } `; -const CellBarAddress = styled("div")<{ $active?: boolean }>` +const CellBarAddress = styled("div")` width: 100%; box-sizing: border-box; height: 24px; @@ -172,28 +175,16 @@ const CellBarAddress = styled("div")<{ $active?: boolean }>` align-items: center; justify-content: center; text-align: center; - padding: 4px 8px; - border-radius: 4px 0px 0px 4px; - background-color: ${(props) => - props.$active ? theme.palette.action.selected : "transparent"}; - &:hover { - background-color: ${theme.palette.grey["300"]}; - } + padding-left: 8px; + background-color: "transparent"; `; -const MenuButton = styled("div")<{ $active?: boolean }>` +const StyledIcon = styled("div")` display: flex; align-items: center; justify-content: center; - cursor: pointer; padding: 4px 2px; - border-radius: 0px 4px 4px 0px; - color: ${theme.palette.common.black}; - background-color: ${(props) => - props.$active ? theme.palette.action.selected : "transparent"}; - &:hover { - background-color: ${theme.palette.grey["300"]}; - } + background-color: "transparent"; `; const EditorWrapper = styled("div")`