[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 {
min-width: auto;
.scroll_container {
overflow-y: hidden;
width: auto;
// overflow-y: hidden;
// width: auto;
}
}
}

View File

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

View File

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