优化 Telegram 和微信通知布局
统一宽窄非移动端的标题、绑定信息、开关表单和操作按钮布局,避免文字挤压与控件变形。
This commit is contained in:
parent
e123fbbe29
commit
2afa1d573c
@ -1,22 +1,22 @@
|
|||||||
.telegram-settings {
|
.telegram-settings {
|
||||||
|
display: grid;
|
||||||
|
gap: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 16px;
|
padding: 16px 16px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-header {
|
.telegram-header {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
gap: 12px;
|
||||||
gap: 16px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-header h4 {
|
.telegram-header h4 {
|
||||||
margin: 0 0 8px;
|
margin: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,12 +28,16 @@
|
|||||||
word-break: normal;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.telegram-header p {
|
||||||
|
margin: 6px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
.telegram-header a {
|
.telegram-header a {
|
||||||
color: var(--el-color-primary);
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-settings .el-alert {
|
.telegram-settings .el-alert {
|
||||||
margin-bottom: 20px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-actions,
|
.telegram-actions,
|
||||||
@ -46,7 +50,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.telegram-actions {
|
.telegram-actions {
|
||||||
margin-top: 20px;
|
justify-content: flex-end;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-actions .el-button,
|
.telegram-actions .el-button,
|
||||||
@ -62,19 +67,38 @@
|
|||||||
.telegram-settings :deep(.el-form-item) {
|
.telegram-settings :deep(.el-form-item) {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border: 1px solid var(--el-border-color-lighter);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--el-fill-color-blank);
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-settings :deep(.el-form-item__label) {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-identity {
|
.telegram-identity {
|
||||||
padding: 16px;
|
display: grid;
|
||||||
margin-bottom: 20px;
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||||
|
padding: 14px;
|
||||||
|
margin: 0;
|
||||||
border: 1px solid var(--el-border-color-light);
|
border: 1px solid var(--el-border-color-light);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
background: var(--el-fill-color-blank);
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-identity strong {
|
.telegram-identity strong {
|
||||||
flex: 1;
|
min-width: 0;
|
||||||
min-width: 100px;
|
overflow: hidden;
|
||||||
overflow-wrap: anywhere;
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-hint {
|
||||||
|
margin: -4px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-binding {
|
.telegram-binding {
|
||||||
@ -112,14 +136,13 @@
|
|||||||
|
|
||||||
@container config-main (max-width: 420px) {
|
@container config-main (max-width: 420px) {
|
||||||
.telegram-settings {
|
.telegram-settings {
|
||||||
padding: 10px 4px;
|
gap: 12px;
|
||||||
|
padding: 10px 4px 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-header {
|
.telegram-header {
|
||||||
align-items: flex-start;
|
align-items: start;
|
||||||
flex-direction: column;
|
gap: 8px 10px;
|
||||||
gap: 8px;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-settings :deep(.el-form) {
|
.telegram-settings :deep(.el-form) {
|
||||||
@ -128,10 +151,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.telegram-identity {
|
.telegram-identity {
|
||||||
align-items: flex-start;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
margin-bottom: 14px;
|
gap: 8px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-identity .telegram-hint,
|
||||||
|
.telegram-identity strong {
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-identity .telegram-hint {
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-identity strong {
|
||||||
|
grid-row: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.telegram-buttons,
|
.telegram-buttons,
|
||||||
@ -139,8 +175,13 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.telegram-identity .telegram-buttons {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
.telegram-buttons .el-button,
|
.telegram-buttons .el-button,
|
||||||
.telegram-actions .el-button {
|
.telegram-actions .el-button {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 0;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
.wechat-settings {
|
.wechat-settings {
|
||||||
|
display: grid;
|
||||||
|
gap: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 16px;
|
padding: 16px 16px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-header,
|
.wechat-header,
|
||||||
@ -16,12 +18,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wechat-header {
|
.wechat-header {
|
||||||
justify-content: space-between;
|
display: grid;
|
||||||
margin-bottom: 20px;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-header h4 {
|
.wechat-header h4 {
|
||||||
margin: 0 0 8px;
|
margin: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,24 +38,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wechat-header p {
|
.wechat-header p {
|
||||||
margin: 0;
|
margin: 6px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-settings .el-alert {
|
.wechat-settings .el-alert {
|
||||||
margin-bottom: 16px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-identity {
|
.wechat-identity {
|
||||||
padding: 16px;
|
display: grid;
|
||||||
margin-bottom: 20px;
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||||
|
padding: 14px;
|
||||||
|
margin: 0;
|
||||||
border: 1px solid var(--el-border-color-light);
|
border: 1px solid var(--el-border-color-light);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
background: var(--el-fill-color-blank);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-identity strong {
|
.wechat-identity strong {
|
||||||
flex: 1;
|
min-width: 0;
|
||||||
min-width: 100px;
|
overflow: hidden;
|
||||||
overflow-wrap: anywhere;
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-buttons .el-button {
|
.wechat-buttons .el-button {
|
||||||
@ -67,6 +74,26 @@
|
|||||||
|
|
||||||
.wechat-settings :deep(.el-form-item) {
|
.wechat-settings :deep(.el-form-item) {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border: 1px solid var(--el-border-color-lighter);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--el-fill-color-blank);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-settings :deep(.el-form-item__label) {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-hint {
|
||||||
|
margin: -4px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-settings > .wechat-buttons {
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-binding {
|
.wechat-binding {
|
||||||
@ -100,14 +127,13 @@
|
|||||||
|
|
||||||
@container config-main (max-width: 420px) {
|
@container config-main (max-width: 420px) {
|
||||||
.wechat-settings {
|
.wechat-settings {
|
||||||
padding: 10px 4px;
|
gap: 12px;
|
||||||
|
padding: 10px 4px 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-header {
|
.wechat-header {
|
||||||
align-items: flex-start;
|
align-items: start;
|
||||||
flex-direction: column;
|
gap: 8px 10px;
|
||||||
gap: 8px;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-settings :deep(.el-form) {
|
.wechat-settings :deep(.el-form) {
|
||||||
@ -116,17 +142,35 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wechat-identity {
|
.wechat-identity {
|
||||||
align-items: flex-start;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
margin-bottom: 14px;
|
gap: 8px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-identity .wechat-label,
|
||||||
|
.wechat-identity strong {
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-identity .wechat-label {
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat-identity strong {
|
||||||
|
grid-row: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wechat-buttons {
|
.wechat-buttons {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wechat-identity .wechat-buttons {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
.wechat-buttons .el-button {
|
.wechat-buttons .el-button {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 0;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user