From e2e3ed1eaf415a41cd20f44ba2fa1455a6d2a6a5 Mon Sep 17 00:00:00 2001 From: Vladislav Kopnin Date: Mon, 26 Oct 2026 19:49:22 +0300 Subject: [PATCH] fix: unify group matrix typography and dashboard order - use one 12px font size for all matrix cell text - center average score values while keeping the header left-aligned - swap Groups and Labs panels on the admin dashboard --- web/src/main/resources/static/css/app.css | 20 ++++++++--- .../resources/templates/admin/dashboard.html | 34 +++++++++---------- .../resources/templates/fragments/base.html | 2 +- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/web/src/main/resources/static/css/app.css b/web/src/main/resources/static/css/app.css index a78d61b..803063f 100644 --- a/web/src/main/resources/static/css/app.css +++ b/web/src/main/resources/static/css/app.css @@ -467,7 +467,7 @@ code.code { padding: 0.125rem 0.5rem; border-radius: var(--radius-xs); font-fami .variant-btn.manual .cell-none { font-weight: 600; } .score-link { display: inline-block; padding: 0; border: none; background: none; - font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; + font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-text); cursor: pointer; } .score-link:hover { color: var(--c-accent); text-decoration: underline; } @@ -555,7 +555,17 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } font-size: 0.75rem; font-weight: 500; color: var(--c-text-muted); background: var(--c-surface); white-space: nowrap; } -.matrix td { vertical-align: middle; padding: 1rem; } +.matrix td { vertical-align: middle; padding: 1rem; font-size: 0.75rem; } +#group-table td .student-name, +#group-table td .score-link, +#group-table td .attestation-select, +#group-table td .cell-sub, +#group-table td .sub-link, +#group-table td .cell-btn.st, +#group-table td .font-mono, +#group-table td .mini-count, +#group-table td .badge, +#group-table td .btn { font-size: 0.75rem; } /* Непрозрачный фон обязателен: закреплённый столбец не должен просвечивать при прокрутке. */ .matrix tbody tr:hover td { background: var(--c-row-hover); } .matrix tbody tr:hover td.matrix-sticky { background: var(--c-row-hover); } @@ -569,7 +579,7 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } #group-table td.actions-cell { border-left: 1px solid var(--c-border); } .matrix th.attestation-col, .matrix td.attestation-cell { - width: 10rem; min-width: 9.5rem; max-width: 10rem; + width: 10.5rem; min-width: 10rem; max-width: 10.5rem; padding-left: 0.35rem; padding-right: 0.35rem; border-left: 1px solid var(--c-border); } @@ -577,7 +587,7 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } .matrix td.average-cell { min-width: 7rem; border-left: 1px solid var(--c-border); text-align: left; } -.matrix td.average-cell { font-weight: 600; } +.matrix td.average-cell { font-weight: 600; text-align: center; } .matrix th.password-col, .matrix td.password-cell { border-left: 1px solid var(--c-border); } .attestation-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; width: 100%; max-width: 9rem; text-align: left; } @@ -589,7 +599,7 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } width: 100%; max-width: 100%; min-width: 0; padding: 0.15rem 0.95rem 0.15rem 0.15rem; border: 1px solid transparent; border-radius: var(--radius-sm); background-color: transparent; color: var(--c-text); - font-size: 0.7rem; font-weight: 600; font-variant-numeric: tabular-nums; + font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; text-align-last: left; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), diff --git a/web/src/main/resources/templates/admin/dashboard.html b/web/src/main/resources/templates/admin/dashboard.html index f5997b6..57deb91 100644 --- a/web/src/main/resources/templates/admin/dashboard.html +++ b/web/src/main/resources/templates/admin/dashboard.html @@ -16,23 +16,6 @@
-
-
-

Лабораторные

- Все лабораторные → -
-
- - - - - - - - -
——
Лабораторных нет.
-
-

Группы

@@ -50,6 +33,23 @@
+
+
+

Лабораторные

+ Все лабораторные → +
+
+ + + + + + + + +
——
Лабораторных нет.
+
+
diff --git a/web/src/main/resources/templates/fragments/base.html b/web/src/main/resources/templates/fragments/base.html index 6ab66f1..cc879f0 100644 --- a/web/src/main/resources/templates/fragments/base.html +++ b/web/src/main/resources/templates/fragments/base.html @@ -17,7 +17,7 @@ - +