优化非移动端设置页百分之五十布局
设置页在非移动端固定占视口宽度百分之五十,贴合右侧和上下边缘并移除圆角;移动端继续保持全屏布局,同时更新布局测试。
This commit is contained in:
1 parent
5acabcd877
commit
2083f22ce8
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"
|
||||
|
||||
Reference in new issue
Block a user