From 9b032196bedd9d7ee4566e817cdfa098d9bf25b9 Mon Sep 17 00:00:00 2001 From: jamesread Date: Sun, 11 Jan 2026 22:02:07 +0000 Subject: [PATCH] fix: Implement stylemods again in 3k --- frontend/resources/vue/App.vue | 14 ++++++++++++++ frontend/style.css | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/frontend/resources/vue/App.vue b/frontend/resources/vue/App.vue index 56b7aff2..063890dd 100644 --- a/frontend/resources/vue/App.vue +++ b/frontend/resources/vue/App.vue @@ -230,6 +230,8 @@ function updateHeaderFromInit() { showLoginLink.value = false } + applyStyleMods() + renderNavigation() applyTheme() @@ -366,6 +368,18 @@ function applyTheme() { } } +function applyStyleMods() { + if (!window.initResponse || !window.initResponse.styleMods) { + return + } + + for (const styleMod of window.initResponse.styleMods) { + if (styleMod) { + document.body.classList.add(styleMod) + } + } +} + function handleThemeDialogClick(event) { if (event.target === themeDialog.value) { closeThemeDialog() diff --git a/frontend/style.css b/frontend/style.css index e19e62a2..1c2391bb 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -38,4 +38,28 @@ div.buttons button svg { section.small { border-radius: .4em; +} + +.sm-side-icons .action-button button { + display: flex; + flex-direction: row; + align-items: center; +} + +.sm-imageicons-fullwidth .action-button button .icon img { + width: 100%; +} + +.sm-transparent-header header { + background-color: transparent; + box-shadow: none; + border-color: transparent; +} + +.sm-transparent-header #sidebar-button { + border-color: transparent; +} + +.sm-transparent-footer footer span { + background-color: transparent; } \ No newline at end of file