diff --git a/src/assets/icons/menuButtonClose.svg b/src/assets/icons/menuButtonClose.svg new file mode 100644 index 0000000..8a42ca9 --- /dev/null +++ b/src/assets/icons/menuButtonClose.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icons/menuButtonOpen.svg b/src/assets/icons/menuButtonOpen.svg new file mode 100644 index 0000000..72dd863 --- /dev/null +++ b/src/assets/icons/menuButtonOpen.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Toolbar.tsx b/src/components/Toolbar.tsx index 86599d3..4f63564 100644 --- a/src/components/Toolbar.tsx +++ b/src/components/Toolbar.tsx @@ -2,7 +2,7 @@ import LineDefinition from "./toolbar/LineDefinition"; const Toolbar = () => { return ( -
+
{/* TODO: add butotns */}
{/* TODO: add butotns */}
diff --git a/src/components/ruler/Numbers.tsx b/src/components/ruler/Numbers.tsx index 2f98085..3f67f74 100644 --- a/src/components/ruler/Numbers.tsx +++ b/src/components/ruler/Numbers.tsx @@ -19,9 +19,9 @@ const Numbers = ({ labels, startIndex, setStartIndex }: IProps) => { {labels.slice(startIndex, startIndex + 21).map((label) => (
-
+
{label}
))} diff --git a/src/components/ruler/XAxis.tsx b/src/components/ruler/XAxis.tsx index 43ebf23..e585df7 100644 --- a/src/components/ruler/XAxis.tsx +++ b/src/components/ruler/XAxis.tsx @@ -13,12 +13,12 @@ const XAxis = ({ labels }: IProps) => { {labels.length == 101 ? ( <> -
+
) : ( -
+
)} diff --git a/src/components/toolbar/LineDefinition.tsx b/src/components/toolbar/LineDefinition.tsx index 0c0b34a..19d5903 100644 --- a/src/components/toolbar/LineDefinition.tsx +++ b/src/components/toolbar/LineDefinition.tsx @@ -2,6 +2,9 @@ import { useState } from "react"; import { Button } from "../ui/button"; import { LineRange } from "../../type/Line"; import { useNumbersLineContext } from "../../context/numbersLineContext"; +import openMenu from "../../assets/icons/menuButtonOpen.svg"; +import closeMenu from "../../assets/icons/menuButtonClose.svg"; + const LineDefinition = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); @@ -18,23 +21,40 @@ const LineDefinition = () => { }; return ( -
- {isMenuOpen && ( -
+
)}