Forms: return to previous scroll position after submit (no highlight/flicker); themed scrollbars everywhere

This commit is contained in:
2026-10-08 00:54:51 +03:00
parent 99b8671650
commit d7c64308b3
12 changed files with 68 additions and 45 deletions

View File

@@ -342,7 +342,7 @@
<div class="dlg-body" id="assign-modal-body"></div>
</dialog>
<script th:src="@{/js/admin-group.js(v='20')}" defer></script>
<script th:src="@{/js/admin-group.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -196,7 +196,7 @@
</dialog>
</th:block>
</div>
<script th:src="@{/js/admin-lab.js(v='20')}" defer></script>
<script th:src="@{/js/admin-lab.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -17,18 +17,18 @@
<!-- v=4: сброс кэша стилей после редизайна; при изменении css поднимать версию -->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/bootstrap-icons.min.css}">
<link rel="stylesheet" th:href="@{/css/app.css(v='20')}">
<link id="hljs-light" rel="stylesheet" th:href="@{/css/hljs-github.css(v='20')}">
<link id="hljs-dark" rel="stylesheet" th:href="@{/css/hljs-github-dark.css(v='20')}" disabled>
<script th:src="@{/js/highlight.min.js(v='20')}" defer></script>
<script th:src="@{/js/table-scroll.js(v='20')}" defer></script>
<script th:src="@{/js/tablekit.js(v='20')}" defer></script>
<link rel="stylesheet" th:href="@{/css/app.css(v='21')}">
<link id="hljs-light" rel="stylesheet" th:href="@{/css/hljs-github.css(v='21')}">
<link id="hljs-dark" rel="stylesheet" th:href="@{/css/hljs-github-dark.css(v='21')}" disabled>
<script th:src="@{/js/highlight.min.js(v='21')}" defer></script>
<script th:src="@{/js/table-scroll.js(v='21')}" defer></script>
<script th:src="@{/js/tablekit.js(v='21')}" defer></script>
<script th:src="@{/js/bootstrap.bundle.min.js}" defer></script>
<script th:src="@{/js/theme-init.js(v='20')}"></script>
<script th:src="@{/js/app.js(v='20')}" defer></script>
<script th:src="@{/js/ui-state.js(v='20')}" defer></script>
<script th:src="@{/js/md-content.js(v='20')}" defer></script>
<script th:src="@{/js/submit-guard.js(v='20')}" defer></script>
<script th:src="@{/js/theme-init.js(v='21')}"></script>
<script th:src="@{/js/app.js(v='24')}" defer></script>
<script th:src="@{/js/ui-state.js(v='24')}" defer></script>
<script th:src="@{/js/md-content.js(v='21')}" defer></script>
<script th:src="@{/js/submit-guard.js(v='21')}" defer></script>
</head>
<body>
<div class="page d-flex flex-column min-vh-100">

View File

@@ -124,7 +124,7 @@
</div>
<script th:src="@{/js/mdeditor.js(v='20')}" defer></script>
<script th:src="@{/js/mdeditor.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -183,7 +183,7 @@
</div>
</dialog>
<script th:src="@{/js/content-sort.js(v='20')}" defer></script>
<script th:src="@{/js/content-sort.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -236,8 +236,8 @@
</div>
</dialog>
<script th:src="@{/js/mdeditor.js(v='20')}" defer></script>
<script th:src="@{/js/content-sort.js(v='20')}" defer></script>
<script th:src="@{/js/mdeditor.js(v='21')}" defer></script>
<script th:src="@{/js/content-sort.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -143,7 +143,7 @@
</div>
</dialog>
<script th:src="@{/js/content-sort.js(v='20')}" defer></script>
<script th:src="@{/js/content-sort.js(v='21')}" defer></script>
</div>
</body>
</html>

View File

@@ -107,7 +107,7 @@
<p class="text-sm text-muted">Ожидайте преподавателя с проверкой.</p>
</div>
</div>
<script th:src="@{/js/defense-timer.js(v='20')}" defer></script>
<script th:src="@{/js/defense-timer.js(v='21')}" defer></script>
</div>
</body>
</html>