Switch panels to svh and native theme scrolling

This commit is contained in:
jxxghp
2026-06-29 19:56:18 +08:00
parent 0aa7d37e45
commit c57a8b7b48
2 changed files with 8 additions and 11 deletions

View File

@@ -2372,9 +2372,9 @@ onScopeDispose(() => {
--agent-assistant-panel-blur: 10px;
}
@supports (block-size: 100dvh) {
@supports (block-size: 100svh) {
.agent-assistant-shell {
block-size: 100dvh;
block-size: 100svh;
}
}

View File

@@ -222,7 +222,7 @@ async function handleResetSettings() {
<VDivider />
<PerfectScrollbar class="theme-customizer-body" :options="{ wheelPropagation: false }">
<div class="theme-customizer-body">
<section class="theme-customizer-section">
<h3 class="theme-customizer-section-title">{{ t('theme.customizer.primaryColor') }}</h3>
<div class="theme-customizer-color-grid">
@@ -405,7 +405,7 @@ async function handleResetSettings() {
</div>
</div>
</section>
</PerfectScrollbar>
</div>
</div>
</aside>
</template>
@@ -448,9 +448,9 @@ async function handleResetSettings() {
min-block-size: 0;
}
@supports (block-size: 100dvh) {
@supports (block-size: 100svh) {
.theme-customizer-panel {
block-size: 100dvh;
block-size: 100svh;
}
}
@@ -498,18 +498,15 @@ async function handleResetSettings() {
.theme-customizer-body {
flex: 1 1 auto;
min-block-size: 0;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
:deep(.ps__rail-x),
:deep(.ps__rail-y) {
display: none !important;
}
}
.theme-customizer-section {