修复插件配置窄窗口布局变形

调整非移动端窄设置抽屉中的插件通知布局,避免内容区被子菜单挤压,保证通知表单单列显示和菜单文字不变形。
This commit is contained in:
smail 2026-10-15 21:42:00 +08:00
parent d321bf0b90
commit 8e1093029c
3 changed files with 85 additions and 5 deletions

View File

@ -336,17 +336,19 @@
:global(.settings-drawer-desktop .config-workspace) {
grid-template-columns: minmax(0, 1fr);
grid-template-areas:
"submenu"
"main";
gap: 16px;
"main"
"submenu";
gap: 12px;
}
:global(.settings-drawer-desktop .config-navigation) {
position: static;
min-width: 0;
width: 100%;
}
:global(.settings-drawer-desktop .config-main) {
width: 100%;
min-width: 0;
}

View File

@ -1,5 +1,8 @@
.telegram-settings {
max-width: 760px;
width: 100%;
max-width: none;
min-width: 0;
box-sizing: border-box;
padding: 16px;
}
@ -21,6 +24,8 @@
.telegram-hint {
color: var(--el-text-color-secondary);
line-height: 1.6;
overflow-wrap: normal;
word-break: normal;
}
.telegram-header a {
@ -104,3 +109,38 @@
grid-template-columns: minmax(0, 1fr);
}
}
@container config-main (max-width: 420px) {
.telegram-settings {
padding: 10px 4px;
}
.telegram-header {
align-items: flex-start;
flex-direction: column;
gap: 8px;
margin-bottom: 14px;
}
.telegram-settings :deep(.el-form) {
grid-template-columns: minmax(0, 1fr);
gap: 8px;
}
.telegram-identity {
align-items: flex-start;
flex-direction: column;
padding: 12px;
margin-bottom: 14px;
}
.telegram-buttons,
.telegram-actions {
width: 100%;
}
.telegram-buttons .el-button,
.telegram-actions .el-button {
flex: 1 1 auto;
}
}

View File

@ -1,5 +1,8 @@
.wechat-settings {
max-width: 760px;
width: 100%;
max-width: none;
min-width: 0;
box-sizing: border-box;
padding: 16px;
}
@ -27,6 +30,8 @@
.wechat-label {
color: var(--el-text-color-secondary);
line-height: 1.6;
overflow-wrap: normal;
word-break: normal;
}
.wechat-header p {
@ -92,3 +97,36 @@
grid-template-columns: minmax(0, 1fr);
}
}
@container config-main (max-width: 420px) {
.wechat-settings {
padding: 10px 4px;
}
.wechat-header {
align-items: flex-start;
flex-direction: column;
gap: 8px;
margin-bottom: 14px;
}
.wechat-settings :deep(.el-form) {
grid-template-columns: minmax(0, 1fr);
gap: 8px;
}
.wechat-identity {
align-items: flex-start;
flex-direction: column;
padding: 12px;
margin-bottom: 14px;
}
.wechat-buttons {
width: 100%;
}
.wechat-buttons .el-button {
flex: 1 1 auto;
}
}