feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -2,14 +2,10 @@
|
||||
.settings-page {
|
||||
--settings-section-gap: 24px;
|
||||
--settings-field-gap: 24px;
|
||||
margin-top: 60px;
|
||||
padding: 0 max(0px, calc(var(--uc-page-pad-x) - 24px))
|
||||
var(--uc-page-pad-bottom);
|
||||
/* PageLayout top padding (24px) + this page's top margin (60px). */
|
||||
height: calc(100vh - 84px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 84px - var(--content-top-offset, 0px));
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overflow-y: visible;
|
||||
overflow-x: hidden;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
@@ -92,6 +88,75 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Reserve one validation line so required-field errors do not shift the grid. */
|
||||
.settings-page .settings-system-form .ant-form-item,
|
||||
.settings-form-dialog .settings-system-form .ant-form-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.settings-page .settings-system-form .ant-form-item-control::after,
|
||||
.settings-form-dialog .settings-system-form .ant-form-item-control::after {
|
||||
display: block;
|
||||
height: 22px;
|
||||
margin-top: 2px;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.settings-page
|
||||
.settings-system-form
|
||||
.ant-form-item-control:has(.ant-form-item-explain)::after,
|
||||
.settings-form-dialog
|
||||
.settings-system-form
|
||||
.ant-form-item-control:has(.ant-form-item-explain)::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.settings-page .settings-system-form .ant-form-item-explain,
|
||||
.settings-form-dialog .settings-system-form .ant-form-item-explain {
|
||||
min-height: 22px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.settings-form-dialog .ant-form-item-label {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.settings-page .settings-system-form .grid,
|
||||
.settings-form-dialog .grid {
|
||||
column-gap: 24px;
|
||||
row-gap: 24px;
|
||||
}
|
||||
|
||||
.settings-page
|
||||
.settings-system-form
|
||||
.ant-form-item-control-input-content
|
||||
> :is(.ant-select, .ant-picker, .ant-input-number),
|
||||
.settings-form-dialog
|
||||
.settings-system-form
|
||||
.ant-form-item-control-input-content
|
||||
> :is(.ant-select, .ant-picker, .ant-input-number) {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-form-dialog :is(.ant-modal-footer, .ant-drawer-footer) .ant-btn {
|
||||
height: 34px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.settings-form-dialog :is(.ant-modal-footer, .ant-drawer-footer) .lucide {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.settings-form-dialog :is(.ant-modal-footer, .ant-drawer-footer) > div {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item-extra,
|
||||
.settings-page .ant-form-item-explain {
|
||||
margin-top: 6px;
|
||||
@@ -128,10 +193,7 @@
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.settings-page {
|
||||
padding-inline: max(0px, calc(var(--uc-page-pad-x) - 5px));
|
||||
/* Mobile PageLayout uses 5px top padding. */
|
||||
height: calc(100vh - 65px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 65px - var(--content-top-offset, 0px));
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.settings-page .ant-card-body {
|
||||
|
||||
Reference in New Issue
Block a user