Keep dialog actions visible and unify export and archive layouts
This commit is contained in:
1 parent
05311a5d9a
commit
2f312eb5d7
3 files changed
+40
-19
No files matched your search
@@ -70,7 +70,7 @@ defineExpose({ open, showHistory })
|
||||
<p>{{ new Date(entry.createdAt).toLocaleString(locale) }}</p><p>{{ entry.reason }}</p>
|
||||
</article>
|
||||
<el-empty v-if="!busy && !history.length" :description="t('archive.noHistory')" />
|
||||
<div class="archive-pagination">
|
||||
<div class="cursor-pager">
|
||||
<el-button :disabled="busy || historyPage === 1" @click="historyPage--; loadHistory()">{{ t('archive.previous') }}</el-button>
|
||||
<span>{{ t('archive.page', { page: historyPage }) }}</span>
|
||||
<el-button :disabled="busy || history.length < 20" @click="historyPage++; loadHistory()">{{ t('archive.next') }}</el-button>
|
||||
@@ -112,9 +112,8 @@ defineExpose({ open, showHistory })
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.archive-content { max-height: 65vh; overflow: auto; min-height: 140px; }
|
||||
article { border-bottom: 1px solid var(--el-border-color-light); padding: 12px 0; overflow-wrap: anywhere; }
|
||||
.archive-content { min-height: 140px; }
|
||||
article { border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
|
||||
p { margin: 6px 0; line-height: 1.6; }
|
||||
.archive-error { color: var(--el-color-danger); }
|
||||
.archive-pagination { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
|
||||
</style>
|
||||
@@ -65,20 +65,21 @@ defineExpose({ open })
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.export-hint { margin: 0 0 16px; color: var(--el-text-color-secondary); }
|
||||
.export-hint { margin: 0 0 16px; color: var(--muted); }
|
||||
.export-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.column-panel { border: 1px solid var(--el-border-color); border-radius: 8px; overflow: hidden; min-width: 0; }
|
||||
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--el-fill-color-light); }
|
||||
.column-list { min-height: 210px; max-height: 320px; overflow-y: auto; padding: 10px; }
|
||||
.column-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--el-border-color); border-radius: 5px; background: var(--el-bg-color); color: var(--el-text-color-primary); text-align: left; }
|
||||
.available-item { cursor: pointer; }
|
||||
.column-panel { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; min-width: 0; }
|
||||
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--surface-muted); }
|
||||
.column-list { max-height: 320px; overflow-y: auto; padding: 10px; }
|
||||
.column-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); text-align: left; }
|
||||
.available-item { cursor: pointer; overflow-wrap: anywhere; }
|
||||
.available-item:hover { border-color: var(--el-color-primary); color: var(--el-color-primary); }
|
||||
.column-label { min-width: 0; overflow-wrap: anywhere; }
|
||||
.drag-handle { cursor: grab; color: var(--el-text-color-secondary); }
|
||||
.drag-handle { cursor: grab; color: var(--muted); }
|
||||
.column-actions { display: flex; flex-shrink: 0; gap: 3px; }
|
||||
.column-actions button { border: 0; background: transparent; color: var(--el-color-primary); cursor: pointer; font-size: 16px; }
|
||||
.column-actions button { min-width: 32px; min-height: 32px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--el-color-primary); cursor: pointer; font-size: 16px; }
|
||||
.column-actions button:enabled:hover { background: var(--selection-surface); }
|
||||
.column-actions button:disabled { color: var(--button-disabled-text); cursor: not-allowed; }
|
||||
.empty { color: var(--el-text-color-placeholder); text-align: center; }
|
||||
.empty { color: var(--muted); text-align: center; }
|
||||
.export-options { margin-top: 16px; }
|
||||
@media (max-width: 600px) { .export-columns { grid-template-columns: 1fr; } .column-list { min-height: 80px; max-height: 180px; } }
|
||||
@media (max-width: 600px) { .export-columns { grid-template-columns: 1fr; } .column-list { max-height: 180px; } }
|
||||
</style>
|
||||
+26
-5
@@ -1504,7 +1504,6 @@ button:disabled { cursor: not-allowed; }
|
||||
.exam-row-actions { grid-column:2/-1; padding-bottom:10px; text-align:left; }
|
||||
.role-editor-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
|
||||
.form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 0; }
|
||||
.el-dialog { width: calc(100vw - 24px) !important; max-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom) - 24px); overflow-y: auto; }
|
||||
.login-page { display: block; min-height: 100vh; background: #f4f6f9; }
|
||||
.login-story { min-height: 310px; padding: 30px 25px; }
|
||||
.story-copy { margin: auto 0 0; }
|
||||
@@ -2068,10 +2067,32 @@ button:focus-visible {
|
||||
}
|
||||
.el-pagination .el-pager { max-width: 100%; flex-wrap: wrap; }
|
||||
}
|
||||
.el-dialog { overflow: hidden; border-radius: 12px; box-shadow: 0 20px 60px rgba(18, 37, 63, .25); }
|
||||
.el-dialog__header { margin-right: 0; padding: 20px 22px 16px; border-bottom: 1px solid #e6ebf1; }
|
||||
.el-dialog__body { padding: 22px; }
|
||||
.el-dialog__footer { padding: 14px 22px 20px; border-top: 1px solid #edf0f4; }
|
||||
.el-dialog:not(.is-fullscreen) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: calc(100% - 24px);
|
||||
max-height: calc(100dvh - var(--el-dialog-margin-top, 15vh) - 20px - var(--safe-area-bottom));
|
||||
margin-bottom: 20px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: 0 20px 60px rgba(18, 37, 63, .25);
|
||||
}
|
||||
.el-dialog.is-align-center:not(.is-fullscreen) { margin: auto; }
|
||||
.el-dialog__header { flex: none; margin-right: 0; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
|
||||
.el-dialog__header.show-close { padding-right: 52px; }
|
||||
.el-dialog__body { min-height: 0; padding: 22px; }
|
||||
.el-dialog:not(.is-fullscreen) > .el-dialog__body { overflow: auto; overscroll-behavior: contain; }
|
||||
.el-dialog__footer { flex: none; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
|
||||
@media (max-width: 980px) {
|
||||
.el-dialog:not(.is-fullscreen) {
|
||||
width: calc(100% - 24px);
|
||||
max-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom) - 24px);
|
||||
}
|
||||
.el-dialog:not(.is-fullscreen, .is-align-center) {
|
||||
margin-block: calc(var(--safe-area-top) + 12px) calc(var(--safe-area-bottom) + 12px);
|
||||
}
|
||||
}
|
||||
.el-tag { border-radius: var(--radius-sm); font-weight: 600; }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
|
||||
Reference in new issue
Block a user