mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix layout shift caused by sidebar panel divider
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user