From b1cf000356fefeeb78c0c75dad2f1010f5586772 Mon Sep 17 00:00:00 2001 From: moonlitgrace Date: Wed, 8 Jan 2025 17:39:25 +0530 Subject: [PATCH] style: make quiblet page responsive --- .../src/routes/(app)/q/[name]/+page.svelte | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/frontend/src/routes/(app)/q/[name]/+page.svelte b/frontend/src/routes/(app)/q/[name]/+page.svelte index 05e906d..f3975e8 100644 --- a/frontend/src/routes/(app)/q/[name]/+page.svelte +++ b/frontend/src/routes/(app)/q/[name]/+page.svelte @@ -4,6 +4,7 @@ import Avatar from '$lib/components/ui/avatar.svelte'; import { cn } from '$lib/functions/classnames'; import { FormatDate } from '$lib/functions/date'; + import { pluralize } from '$lib/functions/pluralize'; import { createAuthStore } from '$lib/stores/auth.svelte'; import { createSidebarStore } from '$lib/stores/sidebar.svelte'; import type { PageData } from './$types'; @@ -43,18 +44,36 @@
-
-
+
+
-

q/{quiblet?.name}

+
+

q/{quiblet?.name}

+
+
+ {quiblet?.members?.length} + {pluralize('Member', quiblet?.members?.length ?? 0)} +
+
+ {quiblet?.quibs} + {pluralize('Quib', quiblet?.quibs)} +
+
+
@@ -65,13 +84,13 @@ -
-
+ {#if highlighted_quibs?.length} @@ -80,7 +99,7 @@

Highlights

-
+
{#each highlighted_quibs as quib}