From 2a627ef988862d79334032322df8ecccb59ae446 Mon Sep 17 00:00:00 2001 From: Sean Tsai <aleetsaiya@gmail.com> Date: Sun, 9 Jul 2023 00:32:02 +0800 Subject: [PATCH] Fix Custom Select unnecessary disabled scrollbar (#1314) --- .../desktop-client/src/components/common/CustomSelect.tsx | 2 +- upcoming-release-notes/1314.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/1314.md diff --git a/packages/desktop-client/src/components/common/CustomSelect.tsx b/packages/desktop-client/src/components/common/CustomSelect.tsx index cafc24f4f..d85ae8714 100644 --- a/packages/desktop-client/src/components/common/CustomSelect.tsx +++ b/packages/desktop-client/src/components/common/CustomSelect.tsx @@ -35,7 +35,7 @@ export default function CustomSelect({ arrow={<ExpandArrow style={{ width: 7, height: 7, paddingTop: 3 }} />} /> <ListboxPopover style={{ zIndex: 10000, outline: 0, borderRadius: 4 }}> - <ListboxList style={{ maxHeight: 250, overflowY: 'scroll' }}> + <ListboxList style={{ maxHeight: 250, overflowY: 'auto' }}> {options.map(([value, label]) => ( <ListboxOption key={value} diff --git a/upcoming-release-notes/1314.md b/upcoming-release-notes/1314.md new file mode 100644 index 000000000..0a475f954 --- /dev/null +++ b/upcoming-release-notes/1314.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [aleetsaiya] +--- + +Fix Custom Select unnecessary disabled scrollbar -- GitLab