[Update] Main Page: Sidebar: Add scroll bar to compact mode.

This commit is contained in:
Sakamoto Shiina
2025-01-30 21:40:06 +09:00
parent e39f77704e
commit 225c9c73b9
3 changed files with 8 additions and 7 deletions

View File

@@ -8,8 +8,8 @@
&.is_compact_mode { &.is_compact_mode {
min-width: auto; min-width: auto;
.scroll_container { .scroll_container {
overflow-y: hidden; // overflow-y: hidden;
width: auto; // width: auto;
} }
} }
} }

View File

@@ -92,11 +92,11 @@ export const SwitchContainer = ({ switchLabel, switch_id, children, currentState
return ( return (
<div className={getClassNames(styles.switch_container)} <div className={getClassNames(styles.switch_container)}
onMouseEnter={onMouseEnter} onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave} onMouseLeave={onMouseLeave}
onMouseDown={onMouseDown} onMouseDown={onMouseDown}
onMouseUp={onMouseUp} onMouseUp={onMouseUp}
onClick={toggleFunction} onClick={toggleFunction}
> >
<div className={styles.label_wrapper}> <div className={styles.label_wrapper}>
<SvgComponent className={getClassNames(styles.switch_svg)} /> <SvgComponent className={getClassNames(styles.switch_svg)} />

View File

@@ -22,6 +22,7 @@
} }
&.is_compact_mode { &.is_compact_mode {
padding: 1.5rem; padding: 1.5rem;
justify-content: center;
} }
&.is_pending { &.is_pending {
pointer-events: none; pointer-events: none;