优化按钮水平排列和垂直对齐
This commit is contained in:
parent
badb37ccd5
commit
e7971f2f44
@ -37,9 +37,10 @@
|
|||||||
.overview-actions {
|
.overview-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
min-width: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,13 +57,20 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-row :deep(.el-button) {
|
.action-row :deep(.el-button) {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
min-width: 112px;
|
min-width: 112px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overview-meta {
|
.overview-meta {
|
||||||
@ -147,11 +155,13 @@
|
|||||||
|
|
||||||
.overview-actions {
|
.overview-actions {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
flex-wrap: wrap;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-row {
|
.action-row {
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-row :deep(.el-button) {
|
.action-row :deep(.el-button) {
|
||||||
|
|||||||
@ -95,6 +95,7 @@
|
|||||||
|
|
||||||
.field-list-row {
|
.field-list-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
align-items: center;
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
@ -115,6 +116,17 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field-list-row :deep(.el-button),
|
||||||
|
.field-add,
|
||||||
|
.field-port-guide :deep(.el-button) {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.field-port-guide {
|
.field-port-guide {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
@ -181,17 +181,21 @@
|
|||||||
.action-row {
|
.action-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
.action-row > .el-button {
|
.action-row > .el-button {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.maintenance-heading {
|
.maintenance-heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -16,6 +16,23 @@
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.relay-item-actions,
|
||||||
|
.relay-editor-actions {
|
||||||
|
justify-content: flex-end;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.relay-item-actions :deep(.el-button),
|
||||||
|
.relay-editor-actions :deep(.el-button) {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.relay-list-heading h5,
|
.relay-list-heading h5,
|
||||||
.relay-editor-heading h5 {
|
.relay-editor-heading h5 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -77,9 +77,10 @@
|
|||||||
.form-actions {
|
.form-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
min-width: 0;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,8 +88,10 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-btn {
|
.add-btn {
|
||||||
@ -179,17 +182,20 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-footer :deep(.el-button) {
|
.dialog-footer :deep(.el-button) {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
min-width: 88px;
|
min-width: 88px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-divider {
|
.custom-divider {
|
||||||
|
|||||||
@ -119,8 +119,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.security-edit-item {
|
.security-edit-item {
|
||||||
display: grid;
|
display: flex;
|
||||||
gap: 10px;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px 16px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
border: 1px solid var(--pm-border-color);
|
border: 1px solid var(--pm-border-color);
|
||||||
border-radius: var(--pm-radius-sm);
|
border-radius: var(--pm-radius-sm);
|
||||||
@ -128,6 +131,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.security-edit-item > div {
|
.security-edit-item > div {
|
||||||
|
flex: 1 1 180px;
|
||||||
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -145,8 +150,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.security-edit-item :deep(.el-button) {
|
.security-edit-item :deep(.el-button) {
|
||||||
width: 100%;
|
flex: 0 0 auto;
|
||||||
|
min-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-switch {
|
.status-switch {
|
||||||
@ -175,7 +182,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@ -374,17 +381,20 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-footer :deep(.el-button) {
|
.dialog-footer :deep(.el-button) {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex: 0 0 auto;
|
||||||
min-width: 88px;
|
min-width: 88px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@container settings-content (max-width: 760px) {
|
@container settings-content (max-width: 760px) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user