From 20d7c7c29e7b9bc11e9cfb001a0ff9192b1101d5 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Sun, 20 Sep 2026 17:53:48 +0800 Subject: [PATCH] style: refine teacher question dialog layout --- src/layout/components/AppMain.vue | 5 +++++ src/views/teacherEnd/exam/index.vue | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 1113a2a..9df46b3 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -411,6 +411,9 @@ router.beforeEach((to, from, next) => { .teacher-dialog.el-dialog, .teacher-dialog .el-dialog { + width: min(760px, calc(100vw - 32px)); + max-height: calc(100vh - 32px); + overflow: hidden; border: 1px solid rgba(52, 177, 238, 0.42); border-radius: 12px; background: linear-gradient(135deg, rgba(6, 24, 38, 0.98), rgba(4, 13, 24, 0.98)); @@ -437,6 +440,8 @@ router.beforeEach((to, from, next) => { } .teacher-dialog .el-dialog__body { + min-height: 0; + overflow-y: auto; color: #d9efff; background: transparent; } diff --git a/src/views/teacherEnd/exam/index.vue b/src/views/teacherEnd/exam/index.vue index 46306d6..86ffc10 100644 --- a/src/views/teacherEnd/exam/index.vue +++ b/src/views/teacherEnd/exam/index.vue @@ -64,7 +64,7 @@ - + {{ item.label }} @@ -327,9 +327,9 @@ function formatTime(value) { return value ? new Date(value).toLocaleString("zh-C .option-row { display: grid; - grid-template-columns: 28px 42px 1fr 36px; + grid-template-columns: 28px minmax(0, 1fr) 36px; align-items: center; - gap: 6px; + gap: 10px; margin-bottom: 10px; }