优化非移动端设置页百分之五十布局

设置页在非移动端固定占视口宽度百分之五十,贴合右侧和上下边缘并移除圆角;移动端继续保持全屏布局,同时更新布局测试。
This commit is contained in:
xuans committed 2026-10-15 18:26:20 +08:00
1 parent fb3dc0a369
commit ca727d177f
3 files changed
+8 -8

No files matched your search

@@ -75,11 +75,11 @@
/* 抽屉由 Teleport 挂载,使用专属类限定,不能依赖祖先的作用域属性。 */
:global(.settings-drawer.el-drawer) {
right: 16px;
inset-block: 12px;
height: auto;
max-height: calc(100dvh - 24px);
border-radius: 18px;
right: 0;
inset-block: 0;
height: 100dvh;
max-height: none;
border-radius: 0;
overflow: hidden;
}
@@ -20,7 +20,7 @@
<!-- 设置抽屉保留右侧导航,一级分类不影响内部标签页。 -->
<el-drawer
v-model="globalStatus.settingsDrawerVisible"
:size="isMobile ? '100%' : 'min(1180px, calc(100vw - 32px))'"
:size="isMobile ? '100%' : '50%'"
:title="lang.settings"
class="settings-drawer"
:with-header="true"