fix layout shift caused by sidebar panel divider

This commit is contained in:
jeffvli
2025-12-27 16:22:19 -08:00
parent 710fc16f62
commit c8221c07ef
2 changed files with 6 additions and 3 deletions
@@ -53,19 +53,23 @@
.resize-handle {
position: relative;
z-index: 10;
flex-shrink: 0;
width: 100%;
height: 4px !important;
height: 0;
padding: 4px 0;
margin: -4px 0;
cursor: row-resize;
&::before {
position: absolute;
top: 0;
top: 50%;
left: 0;
width: 100%;
height: 1px;
content: '';
background: var(--theme-colors-border);
transform: translateY(-50%);
transition: opacity 0.2s ease;
}
}
@@ -184,7 +184,6 @@ export const SidebarPlayQueue = () => {
direction="vertical"
dividerClassName={styles.resizeHandle}
onResize={onLayoutChange}
style={{ flex: 1, height: '100%', minHeight: 0 }}
>
{orderedPanels.map((panel, index) =>
renderPanel(panel, index, orderedPanels.length),