From 8932070fcc64fae57036b9e5fc4d08398e236d68 Mon Sep 17 00:00:00 2001
From: JustTemmie <47639983+JustTemmie@users.noreply.github.com>
Date: Tue, 8 Jul 2025 21:11:14 +0200
Subject: [PATCH 1/2] feat: spice up the home bar
---
layouts/client.vue | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/layouts/client.vue b/layouts/client.vue
index a1ee86d..9ce451e 100644
--- a/layouts/client.vue
+++ b/layouts/client.vue
@@ -3,7 +3,9 @@
- main bar
+
@@ -61,6 +63,11 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
background-color: var(--topbar-background-color);
padding-left: 5dvw;
padding-right: 5dvw;
+
+}
+
+.homebar-item {
+ width: 100dvw;
}
#client-root>div:nth-child(-n+4) {
--
2.47.3
From f7e171d6a2059e7e81972658cc9c3f9aab3eb989 Mon Sep 17 00:00:00 2001
From: SauceyRed
Date: Thu, 10 Jul 2025 11:37:27 +0200
Subject: [PATCH 2/2] feat: move homebar to app.vue outside to
avoid it being rerendered on route change
---
app.vue | 24 ++++++++++++++++++++++++
layouts/client.vue | 26 +-------------------------
2 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/app.vue b/app.vue
index 7af306b..1efe050 100644
--- a/app.vue
+++ b/app.vue
@@ -1,6 +1,13 @@
@@ -71,4 +78,21 @@ a {
visibility: hidden;
}
+#homebar {
+ grid-row: 1;
+ grid-column: 1 / -1;
+ display: flex;
+ justify-content: space-evenly;
+ align-items: center;
+ background: var(--optional-topbar-background);
+ background-color: var(--topbar-background-color);
+ padding-left: 5dvw;
+ padding-right: 5dvw;
+
+}
+
+.homebar-item {
+ width: 100dvw;
+}
+
diff --git a/layouts/client.vue b/layouts/client.vue
index 9ce451e..2687f1e 100644
--- a/layouts/client.vue
+++ b/layouts/client.vue
@@ -1,13 +1,6 @@
-
@@ -40,7 +33,7 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
height: 100dvh;
display: grid;
grid-template-columns: 1fr 4fr 18fr 4fr;
- grid-template-rows: 4dvh auto;
+ grid-template-rows: auto;
text-align: center;
}
@@ -53,23 +46,6 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
transition-duration: 500ms;
}
-#homebar {
- grid-row: 1;
- grid-column: 1 / -1;
- display: flex;
- justify-content: space-evenly;
- align-items: center;
- background: var(--optional-topbar-background);
- background-color: var(--topbar-background-color);
- padding-left: 5dvw;
- padding-right: 5dvw;
-
-}
-
-.homebar-item {
- width: 100dvw;
-}
-
#client-root>div:nth-child(-n+4) {
border-bottom: 1px solid var(--padding-color);
}
--
2.47.3