From d198432be8b7dbdf8b6182ae02fbb0646c933bd6 Mon Sep 17 00:00:00 2001 From: Siklos Date: Fri, 12 Aug 2022 22:13:04 +0200 Subject: [PATCH] Fix css --- src/Components/Bar/Bar.tsx | 2 +- src/Components/History/History.tsx | 2 +- src/Components/SVG/SVG.tsx | 2 +- src/Components/Sidebar/Sidebar.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Bar/Bar.tsx b/src/Components/Bar/Bar.tsx index 1738a3f..77cb259 100644 --- a/src/Components/Bar/Bar.tsx +++ b/src/Components/Bar/Bar.tsx @@ -15,7 +15,7 @@ export const BAR_WIDTH = 64; // 4rem export const Bar: React.FC = (props) => { return ( -
+
= (props: IHistoryProps) => { }; return ( -
+
Timeline
diff --git a/src/Components/SVG/SVG.tsx b/src/Components/SVG/SVG.tsx index 5758d5f..652258f 100644 --- a/src/Components/SVG/SVG.tsx +++ b/src/Components/SVG/SVG.tsx @@ -30,7 +30,7 @@ function resizeViewBox( export const SVG: React.FC = (props: ISVGProps) => { const [viewer, setViewer] = React.useState({ - viewerWidth: window.innerWidth, + viewerWidth: window.innerWidth - BAR_WIDTH, viewerHeight: window.innerHeight }); diff --git a/src/Components/Sidebar/Sidebar.tsx b/src/Components/Sidebar/Sidebar.tsx index 440908f..c39b235 100644 --- a/src/Components/Sidebar/Sidebar.tsx +++ b/src/Components/Sidebar/Sidebar.tsx @@ -30,7 +30,7 @@ export const Sidebar: React.FC = (props: ISidebarProps) => { const isOpenClasses = props.isOpen ? 'left-16' : '-left-64'; return (
Components