From 322f496d26c7bdd90563202fc0b9b33048b4bc52 Mon Sep 17 00:00:00 2001 From: Vladislav Kopnin Date: Thu, 8 Oct 2026 01:57:43 +0300 Subject: [PATCH] Article sidebar: neutralize offcanvas on desktop (visible, sticky) with explicit rules; asset v29 --- web/src/main/resources/static/css/app.css | 9 ++++++- .../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, 28 insertions(+), 21 deletions(-) diff --git a/web/src/main/resources/static/css/app.css b/web/src/main/resources/static/css/app.css index 0227b71..5ea7b4e 100644 --- a/web/src/main/resources/static/css/app.css +++ b/web/src/main/resources/static/css/app.css @@ -648,7 +648,14 @@ th.th-filterable { padding-bottom: 0.35rem; } /* Чтение материалов: контент + боковое содержание */ @media (min-width: 992px) { - .learn-side.offcanvas { position: sticky; top: 4.5rem; max-height: calc(100vh - 5.5rem); overflow: auto; } + /* на десктопе панель — обычный закреплённый блок, а не offcanvas */ + .learn-side.offcanvas { + position: sticky; top: 4.5rem; max-height: calc(100vh - 5.5rem); overflow: auto; + transform: none !important; visibility: visible !important; + background: transparent; border: 0; width: auto; + } + .learn-side.offcanvas .offcanvas-header { display: none; } + .learn-side.offcanvas .offcanvas-body { padding: 0; overflow: visible; } } .learn-side { font-size: 0.875rem; } .side-chapter { font-weight: 600; margin: 0.6rem 0 0.2rem; } diff --git a/web/src/main/resources/templates/admin/group.html b/web/src/main/resources/templates/admin/group.html index ea43961..8df39d8 100644 --- a/web/src/main/resources/templates/admin/group.html +++ b/web/src/main/resources/templates/admin/group.html @@ -342,7 +342,7 @@
- + diff --git a/web/src/main/resources/templates/admin/lab.html b/web/src/main/resources/templates/admin/lab.html index 6167dea..8692a13 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 b9b9c72..60cfb1d 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 b88ae43..65c2c8d 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 5e63c01..5ffafa9 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 2ecdb22..b0699e7 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 d7cc29c..3a5e5e1 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 785e125..13fb599 100644 --- a/web/src/main/resources/templates/student/lab.html +++ b/web/src/main/resources/templates/student/lab.html @@ -107,7 +107,7 @@

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

- +