优化添加背景页面右边栏标签页切换时的内容抖动现象

This commit is contained in:
jingrow 2026-01-22 01:14:53 +08:00
parent a7c6d9e643
commit f844332a2d

View File

@ -2871,6 +2871,7 @@ const removeHistoryItem = (index: number) => {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
scrollbar-gutter: stable; // Prevent layout shift when scrollbar appears/disappears
} }
} }
} }
@ -2986,6 +2987,7 @@ const removeHistoryItem = (index: number) => {
.n-tabs-pane-wrapper { .n-tabs-pane-wrapper {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
scrollbar-gutter: stable; // Prevent layout shift when scrollbar appears/disappears
} }
} }
} }
@ -3023,6 +3025,7 @@ const removeHistoryItem = (index: number) => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; gap: 24px;
scrollbar-gutter: stable; // Prevent layout shift when scrollbar appears/disappears
} }
.color-picker-section, .color-picker-section,