From 6ade7ad2014200a95e52473dc902a54fe1a5ddf6 Mon Sep 17 00:00:00 2001 From: NriotHrreion Date: Sun, 11 Aug 2024 13:17:45 +0800 Subject: [PATCH] fix: Function list sidebar being expanded by the items inside --- src/components/sidebar/FunctionListItem.tsx | 5 ++++- src/components/sidebar/index.tsx | 2 +- src/style/calculator/mixin.less | 17 ++++++++++++++--- src/style/sidebar.less | 8 +++++++- src/style/theme.less | 3 +-- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/components/sidebar/FunctionListItem.tsx b/src/components/sidebar/FunctionListItem.tsx index bb75df3..2f53506 100644 --- a/src/components/sidebar/FunctionListItem.tsx +++ b/src/components/sidebar/FunctionListItem.tsx @@ -54,7 +54,10 @@ const FunctionListItem: React.FC = (props) => { {(props.mode === FunctionInputtingType.NORMAL ? "y" : "\\rho") +"_{"+ (props.index + 1).toString() +"} ="}
- {props.value} + + {props.value} +
+
diff --git a/src/components/sidebar/index.tsx b/src/components/sidebar/index.tsx index e3be277..e9b8e3f 100644 --- a/src/components/sidebar/index.tsx +++ b/src/components/sidebar/index.tsx @@ -54,7 +54,7 @@ const Sidebar: React.FC = () => { }, [sidebarOpen]); return ( -