From 44edb5ebebda5f43f202fb93cbc1fce13d74cbd9 Mon Sep 17 00:00:00 2001 From: Vladislav Kopnin Date: Mon, 26 Oct 2026 19:56:36 +0300 Subject: [PATCH] fix: restore uniform matrix font size and header spacing - use the previous student-name size (13.5px) for all matrix cell text - match attestation header padding to neighboring headers - widen the attestation column just enough for full grade labels --- web/src/main/resources/static/css/app.css | 15 +++++++++------ .../main/resources/templates/fragments/base.html | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/web/src/main/resources/static/css/app.css b/web/src/main/resources/static/css/app.css index 803063f..791a6b2 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.75rem; font-weight: 600; font-variant-numeric: tabular-nums; + font-size: 0.84375rem; 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,7 @@ 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; font-size: 0.75rem; } +.matrix td { vertical-align: middle; padding: 1rem; font-size: 0.84375rem; } #group-table td .student-name, #group-table td .score-link, #group-table td .attestation-select, @@ -565,7 +565,7 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } #group-table td .font-mono, #group-table td .mini-count, #group-table td .badge, -#group-table td .btn { font-size: 0.75rem; } +#group-table td .btn { font-size: 0.84375rem; } /* Непрозрачный фон обязателен: закреплённый столбец не должен просвечивать при прокрутке. */ .matrix tbody tr:hover td { background: var(--c-row-hover); } .matrix tbody tr:hover td.matrix-sticky { background: var(--c-row-hover); } @@ -577,9 +577,12 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } #group-table th.actions-head { color: var(--c-text); font-weight: 400; } #group-table th.actions-head, #group-table td.actions-cell { border-left: 1px solid var(--c-border); } -.matrix th.attestation-col, +.matrix th.attestation-col { + width: 11.5rem; min-width: 11rem; max-width: 11.5rem; + border-left: 1px solid var(--c-border); +} .matrix td.attestation-cell { - width: 10.5rem; min-width: 10rem; max-width: 10.5rem; + width: 11.5rem; min-width: 11rem; max-width: 11.5rem; padding-left: 0.35rem; padding-right: 0.35rem; border-left: 1px solid var(--c-border); } @@ -599,7 +602,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.75rem; font-weight: 600; font-variant-numeric: tabular-nums; + font-size: 0.84375rem; 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/fragments/base.html b/web/src/main/resources/templates/fragments/base.html index cc879f0..633e6de 100644 --- a/web/src/main/resources/templates/fragments/base.html +++ b/web/src/main/resources/templates/fragments/base.html @@ -17,7 +17,7 @@ - +