commit 2b2991be29736b8c5745ea2c7d8d61e6b53d2c74
parent a748218ead090522c724b985914dbbef3694f9f3
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 19:18:39 +0200
parent a748218ead090522c724b985914dbbef3694f9f3
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 19:18:39 +0200
config/home-manager/zaphyra/services/gomuks-web: add css patch
2 files changed, 114 insertions(+), 1 deletion(-)
A
|
103
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/config/home-manager/zaphyra/services/gomuks-web.nix b/config/home-manager/zaphyra/services/gomuks-web.nix @@ -1,4 +1,9 @@ -{ config, ... }: +{ + inputs, + config, + pkgs, + ... +}: { @@ -11,6 +16,11 @@ tgc.services.gomuks-web = { enable = true; + package = pkgs.tgc.gomuks-web.override { + extraPatches = [ + inputs.self.resources.patches.gomuks-web-css + ]; + }; disableAuth = true; };
diff --git a/resources/patches/gomuks-web-css.patch b/resources/patches/gomuks-web-css.patch @@ -0,0 +1,103 @@ +From dffb6b5b517d559fd66142f89289a69a62c24617 Mon Sep 17 00:00:00 2001 +From: "Katja Ramona Sophie Kwast (zaphyra)" <git@zaphyra.eu> +Date: Sun, 24 Aug 2025 15:12:00 +0200 +Subject: [PATCH] web/css: add some stuff + +--- + web/src/index.css | 83 +++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 83 insertions(+) + +diff --git a/web/src/index.css b/web/src/index.css +index 08d78d4..845c203 100644 +--- a/web/src/index.css ++++ b/web/src/index.css +@@ -293,3 +293,86 @@ a { + .hidden { + display: none !important; + } ++ ++ ++ ++div.room-view { ++ grid-template: "header" 3.5rem "messageview" 1fr "autocomplete" 0 "typing" auto "input" auto / 1fr; ++} ++ ++div.message-composer { ++ margin: 0; ++ border-radius: 0; ++} ++ ++div.typing-notifications { ++ min-block-size: 1.6rem; ++ margin: 0; ++ padding-block: .25rem; ++ padding-inline: 1.6rem; ++ background-color: var(--background-color); ++ ++ width: 100%; ++ ++ box-shadow: 0 0 0.5rem var(--background-color); ++ ++ bottom: 0; ++ position: absolute; ++ ++ &.empty { ++ display: none; ++ } ++} ++ ++@media (min-width: 721px) { ++ button.back { ++ display: none; ++ } ++} ++ ++:root { ++ --background-color: #262626; ++ --border-color: #404040; ++ --space-list-background-overlay: #1A1A1A; ++ --room-list-background-overlay: #1A1A1A; ++ --timeline-hover-bg-color: #333; ++ --timeline-vertical-padding: .25rem; ++ --composer-background-color: #333; ++} ++ ++img.avatar { ++ border-radius: 20%; ++} ++ ++div.room-list-wrapper { ++ grid-template-columns: 4rem 1fr; ++} ++ ++div.room-search-wrapper { ++ height: unset; ++} ++ ++div.room-list-wrapper, ++div.space-bar { ++ border-right: 1px solid var(--border-color); ++} ++ ++div.room-header, ++div.room-search-wrapper { ++ border-bottom: 1px solid var(--border-color); ++} ++ ++div.space-entry, ++div.message-composer { ++ border: 1px solid var(--border-color); ++ padding: .35rem; ++} ++ ++div.room-entry { ++ width: unset; ++ padding: .35rem; ++} ++ ++div.space-entry { ++ margin: 0.6rem !important; ++} +-- +2.50.1 +