From 3827955909e7ae62599d6794eaf3369bbcc68c7e Mon Sep 17 00:00:00 2001 From: Vladislav Kopnin Date: Tue, 20 Oct 2026 22:03:50 +0300 Subject: [PATCH] fix: opaque sticky matrix column and square publish marker Use solid row hover colors so the sticky student column does not show underlying cells while scrolling. Replace the circular checkbox marker with a square one and bump asset version to 36. --- web/src/main/resources/static/css/app.css | 11 +++++---- .../main/resources/templates/admin/group.html | 2 +- .../main/resources/templates/admin/lab.html | 2 +- .../resources/templates/fragments/base.html | 24 +++++++++---------- .../resources/templates/learn/article.html | 2 +- .../resources/templates/learn/chapter.html | 2 +- .../main/resources/templates/learn/index.html | 4 ++-- .../resources/templates/learn/section.html | 2 +- .../main/resources/templates/student/lab.html | 2 +- 9 files changed, 27 insertions(+), 24 deletions(-) diff --git a/web/src/main/resources/static/css/app.css b/web/src/main/resources/static/css/app.css index 950874e..179e80e 100644 --- a/web/src/main/resources/static/css/app.css +++ b/web/src/main/resources/static/css/app.css @@ -41,6 +41,7 @@ body { --c-text-link-hover: #9d2b3c; --c-border: #e6e6e9; --c-border-strong: #d4d4da; + --c-row-hover: #f4f4f5; --c-accent: #7a2333; --c-accent-hover: #5f1b28; --c-accent-soft: #f7edee; @@ -71,6 +72,7 @@ body { --c-text-link-hover: #f0b9c2; --c-border: #26272e; --c-border-strong: #34353d; + --c-row-hover: #202127; --c-accent: #a64d5f; --c-accent-hover: #b86070; --c-accent-soft: rgba(166, 77, 95, 0.16); @@ -428,7 +430,7 @@ code.code { padding: 0.125rem 0.5rem; border-radius: var(--radius-xs); font-fami /* Ячейка матрицы в стиле Б3: вариант и оценка — текстом, подстрока — сдача и защита с точкой */ .cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; } .cell-main { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; } -/* Публикация в ячейке — «глаз»-точка: ○ скрыто, ◉ опубликовано (нативный checkbox под капотом) */ +/* Публикация в ячейке — квадратный маркер: □ скрыто, ■ опубликовано (нативный checkbox под капотом) */ .pub-toggle { appearance: none; -webkit-appearance: none; width: 1rem; height: 1rem; margin: 0; padding: 0; cursor: pointer; @@ -438,7 +440,7 @@ code.code { padding: 0.125rem 0.5rem; border-radius: var(--radius-xs); font-fami } .pub-toggle:checked { border-color: var(--c-accent); - background: radial-gradient(circle, var(--c-accent) 0 42%, transparent 48%); + background: linear-gradient(var(--c-accent), var(--c-accent)) center / 0.55rem 0.55rem no-repeat; } .pub-toggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; } .variant-btn { @@ -536,8 +538,9 @@ dialog.dlg.dlg-lg .dlg-body { max-height: 88vh; min-height: 62vh; } background: var(--c-surface); white-space: nowrap; } .matrix td { vertical-align: top; padding: 1rem; } -.matrix tbody tr:hover td { background: rgba(19, 19, 22, 0.03); } -[data-theme="dark"] .matrix tbody tr:hover td { background: rgba(232, 233, 236, 0.045); } +/* Непрозрачный фон обязателен: закреплённый столбец не должен просвечивать при прокрутке. */ +.matrix tbody tr:hover td { background: var(--c-row-hover); } +.matrix tbody tr:hover td.matrix-sticky { background: var(--c-row-hover); } .matrix tbody tr:last-child td { border-bottom: none; } .matrix th.lab-col { min-width: 9.5rem; border-left: 1px solid var(--c-border); } .matrix td.cell-lab { min-width: 9.5rem; border-left: 1px solid var(--c-border); } diff --git a/web/src/main/resources/templates/admin/group.html b/web/src/main/resources/templates/admin/group.html index ec17cbc..62df6f2 100644 --- a/web/src/main/resources/templates/admin/group.html +++ b/web/src/main/resources/templates/admin/group.html @@ -345,7 +345,7 @@
- + diff --git a/web/src/main/resources/templates/admin/lab.html b/web/src/main/resources/templates/admin/lab.html index 36df317..5075122 100644 --- a/web/src/main/resources/templates/admin/lab.html +++ b/web/src/main/resources/templates/admin/lab.html @@ -196,7 +196,7 @@ - + diff --git a/web/src/main/resources/templates/fragments/base.html b/web/src/main/resources/templates/fragments/base.html index a49310f..e8218ff 100644 --- a/web/src/main/resources/templates/fragments/base.html +++ b/web/src/main/resources/templates/fragments/base.html @@ -13,22 +13,22 @@ - + - - - - - - + + + + + + - - - - - + + + + +
diff --git a/web/src/main/resources/templates/learn/article.html b/web/src/main/resources/templates/learn/article.html index 5e3feb2..298b724 100644 --- a/web/src/main/resources/templates/learn/article.html +++ b/web/src/main/resources/templates/learn/article.html @@ -138,7 +138,7 @@
- + diff --git a/web/src/main/resources/templates/learn/chapter.html b/web/src/main/resources/templates/learn/chapter.html index db875a3..c2b663c 100644 --- a/web/src/main/resources/templates/learn/chapter.html +++ b/web/src/main/resources/templates/learn/chapter.html @@ -183,7 +183,7 @@ - + diff --git a/web/src/main/resources/templates/learn/index.html b/web/src/main/resources/templates/learn/index.html index 8633fbb..1dfacf2 100644 --- a/web/src/main/resources/templates/learn/index.html +++ b/web/src/main/resources/templates/learn/index.html @@ -236,8 +236,8 @@ - - + + diff --git a/web/src/main/resources/templates/learn/section.html b/web/src/main/resources/templates/learn/section.html index 501119f..ab54e55 100644 --- a/web/src/main/resources/templates/learn/section.html +++ b/web/src/main/resources/templates/learn/section.html @@ -143,7 +143,7 @@ - + diff --git a/web/src/main/resources/templates/student/lab.html b/web/src/main/resources/templates/student/lab.html index fa69694..492505c 100644 --- a/web/src/main/resources/templates/student/lab.html +++ b/web/src/main/resources/templates/student/lab.html @@ -111,7 +111,7 @@

Ожидайте преподавателя с проверкой.

- +