修复安全码按钮水平对齐与垂直居中
收敛桌面端安全码标题、说明和操作按钮布局,统一按钮尺寸与文字方向,并保留移动端横向操作区。
This commit is contained in:
parent
fafc6b3acb
commit
0fc0f3e503
@ -414,3 +414,119 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.security-settings-card .security-key-header {
|
||||||
|
display: grid !important;
|
||||||
|
grid-template-columns: minmax(0, 1fr) max-content !important;
|
||||||
|
grid-template-rows: auto auto !important;
|
||||||
|
grid-template-areas:
|
||||||
|
"title actions"
|
||||||
|
"description description";
|
||||||
|
align-items: center !important;
|
||||||
|
column-gap: 16px !important;
|
||||||
|
row-gap: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child {
|
||||||
|
display: contents !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > h3 {
|
||||||
|
grid-area: title !important;
|
||||||
|
min-width: 0;
|
||||||
|
margin: 0 !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > .settings-desc {
|
||||||
|
grid-area: description !important;
|
||||||
|
min-width: 0;
|
||||||
|
margin: 0 !important;
|
||||||
|
white-space: normal !important;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions,
|
||||||
|
.security-settings-card .security-key-header > .section-actions {
|
||||||
|
grid-area: actions !important;
|
||||||
|
display: flex !important;
|
||||||
|
flex: 0 0 auto !important;
|
||||||
|
flex-flow: row nowrap !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: flex-end !important;
|
||||||
|
align-self: center !important;
|
||||||
|
justify-self: end !important;
|
||||||
|
gap: 8px !important;
|
||||||
|
width: max-content !important;
|
||||||
|
min-width: max-content !important;
|
||||||
|
max-width: none !important;
|
||||||
|
height: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions > :deep(.el-button),
|
||||||
|
.security-settings-card .security-key-header > .section-actions > :deep(.el-button) {
|
||||||
|
display: inline-flex !important;
|
||||||
|
flex: 0 0 auto !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
width: max-content !important;
|
||||||
|
min-width: max-content !important;
|
||||||
|
height: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
|
max-height: 36px !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
padding: 0 14px !important;
|
||||||
|
line-height: 1 !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
word-break: keep-all !important;
|
||||||
|
overflow-wrap: normal !important;
|
||||||
|
writing-mode: horizontal-tb !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions > :deep(.el-button) > span,
|
||||||
|
.security-settings-card .security-key-header > .section-actions > :deep(.el-button) > span {
|
||||||
|
display: inline-block !important;
|
||||||
|
max-width: none !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
line-height: 1 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.security-settings-card .security-key-header {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
|
align-items: stretch !important;
|
||||||
|
gap: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child {
|
||||||
|
display: block !important;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > :first-child > h3 {
|
||||||
|
margin: 0 0 8px !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.security-settings-card .security-key-header > .security-recovery-actions,
|
||||||
|
.security-settings-card .security-key-header > .section-actions {
|
||||||
|
align-self: stretch !important;
|
||||||
|
justify-content: flex-start !important;
|
||||||
|
width: 100% !important;
|
||||||
|
min-width: 0 !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
height: 36px !important;
|
||||||
|
overflow-x: auto !important;
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user