From cb609c28b5d1fa6cde79e2ef6b884988182f57c2 Mon Sep 17 00:00:00 2001 From: Sascha Date: Tue, 30 Mar 2021 17:02:15 +0200 Subject: Increase width of list/labelmenu and stretch color for menuitems --- webui/src/pages/bug/labels/LabelMenu.tsx | 9 +++------ webui/src/pages/list/Filter.tsx | 23 ++++++++++++++++++----- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'webui/src') diff --git a/webui/src/pages/bug/labels/LabelMenu.tsx b/webui/src/pages/bug/labels/LabelMenu.tsx index 01be11d8..88347316 100644 --- a/webui/src/pages/bug/labels/LabelMenu.tsx +++ b/webui/src/pages/bug/labels/LabelMenu.tsx @@ -67,10 +67,8 @@ const useStyles = makeStyles((theme) => ({ }, }, labelcolor: { - minWidth: '1rem', - minHeight: '1rem', + minWidth: '0.5rem', display: 'flex', - backgroundColor: 'blue', borderRadius: '0.25rem', marginRight: '5px', marginLeft: '3px', @@ -81,8 +79,7 @@ const useStyles = makeStyles((theme) => ({ }, menuRow: { display: 'flex', - alignItems: 'center', - flexWrap: 'wrap', + alignItems: 'initial', }, })); @@ -194,7 +191,7 @@ function FilterDropdown({ selected={itemActive(key)} >
- {itemActive(key) && } + {itemActive(key) && }
({ icon: { paddingRight: theme.spacing(0.5), }, + labelMenu: { + '& .MuiMenu-paper': { + //somehow using "width" won't override the default width... + minWidth: '35ch', + }, + }, + labelMenuItem: { + whiteSpace: 'normal', + wordBreak: 'break-word', + display: 'flex', + alignItems: 'initial', + }, labelcolor: { - minWidth: '15px', - minHeight: '15px', + minWidth: '0.5rem', display: 'flex', - backgroundColor: 'blue', borderRadius: '0.25rem', marginRight: '5px', marginLeft: '3px', @@ -170,6 +181,7 @@ function FilterDropdown({ d[1].toLowerCase().includes(filter.toLowerCase())) .map(([key, value, color]) => ( setOpen(false)} key={key} > + {itemActive(key) && } {color && (