From c6a29313aa9f45622d932c280a7f601240990d4a Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 15 Jan 2026 19:23:34 -0500 Subject: [PATCH] fix: Fixes setting theme upon signup not working upon submitting the signup form. --- Public/css/output.css | 76 ------------------------------- Sources/ViewController/Live.swift | 9 ++-- 2 files changed, 6 insertions(+), 79 deletions(-) diff --git a/Public/css/output.css b/Public/css/output.css index a868615..6ec6839 100644 --- a/Public/css/output.css +++ b/Public/css/output.css @@ -4224,9 +4224,6 @@ .top-2 { top: calc(var(--spacing) * 2); } - .top-\[100vh\] { - top: 100vh; - } .right-2 { right: calc(var(--spacing) * 2); } @@ -4807,18 +4804,12 @@ } } } - .col-span-1 { - grid-column: span 1 / span 1; - } .col-span-2 { grid-column: span 2 / span 2; } .col-span-3 { grid-column: span 3 / span 3; } - .col-span-5 { - grid-column: span 5 / span 5; - } .timeline-end { @layer daisyui.l1.l2.l3 { grid-column-start: 1; @@ -5288,12 +5279,6 @@ } } } - .mx-2 { - margin-inline: calc(var(--spacing) * 2); - } - .mx-4 { - margin-inline: calc(var(--spacing) * 4); - } .mx-auto { margin-inline: auto; } @@ -5383,15 +5368,9 @@ } } } - .my-1 { - margin-block: calc(var(--spacing) * 1); - } .my-1\.5 { margin-block: calc(var(--spacing) * 1.5); } - .my-4 { - margin-block: calc(var(--spacing) * 4); - } .my-6 { margin-block: calc(var(--spacing) * 6); } @@ -5661,9 +5640,6 @@ .mt-6 { margin-top: calc(var(--spacing) * 6); } - .mt-auto { - margin-top: auto; - } .breadcrumbs { @layer daisyui.l1.l2.l3 { max-width: 100%; @@ -5740,9 +5716,6 @@ font-weight: 600; } } - .mb-2 { - margin-bottom: calc(var(--spacing) * 2); - } .mb-4 { margin-bottom: calc(var(--spacing) * 4); } @@ -6473,12 +6446,6 @@ .h-full { height: 100%; } - .h-screen { - height: 100vh; - } - .min-h-full { - min-height: 100%; - } .min-h-screen { min-height: 100vh; } @@ -6610,12 +6577,6 @@ width: calc(var(--size-selector, 0.25rem) * 4); } } - .w-\[300px\] { - width: 300px; - } - .w-\[310px\] { - width: 310px; - } .w-\[330px\] { width: 330px; } @@ -6625,18 +6586,12 @@ .w-full { width: 100%; } - .min-w-\[100px\] { - min-width: 100px; - } .min-w-\[200px\] { min-width: 200px; } .min-w-\[220px\] { min-width: 220px; } - .min-w-\[300px\] { - min-width: 300px; - } .min-w-full { min-width: 100%; } @@ -6839,15 +6794,9 @@ .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } - .grid-cols-5 { - grid-template-columns: repeat(5, minmax(0, 1fr)); - } .flex-col { flex-direction: column; } - .flex-row { - flex-direction: row; - } .flex-wrap { flex-wrap: wrap; } @@ -6872,9 +6821,6 @@ .justify-start { justify-content: flex-start; } - .justify-items-end { - justify-items: end; - } .gap-1 { gap: calc(var(--spacing) * 1); } @@ -6884,9 +6830,6 @@ .gap-4 { gap: calc(var(--spacing) * 4); } - .gap-6 { - gap: calc(var(--spacing) * 6); - } .space-y-1 { :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; @@ -6936,9 +6879,6 @@ margin-inline-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse))); } } - .gap-y-2 { - row-gap: calc(var(--spacing) * 2); - } .gap-y-4 { row-gap: calc(var(--spacing) * 4); } @@ -7230,10 +7170,6 @@ border-style: var(--tw-border-style); border-width: 2px; } - .border-b { - border-bottom-style: var(--tw-border-style); - border-bottom-width: 1px; - } .border-b-1 { border-bottom-style: var(--tw-border-style); border-bottom-width: 1px; @@ -7507,9 +7443,6 @@ } } } - .bg-base-100 { - background-color: var(--color-base-100); - } .bg-base-300 { background-color: var(--color-base-300); } @@ -7939,9 +7872,6 @@ .px-4 { padding-inline: calc(var(--spacing) * 4); } - .py-1 { - padding-block: calc(var(--spacing) * 1); - } .py-1\.5 { padding-block: calc(var(--spacing) * 1.5); } @@ -7968,9 +7898,6 @@ .pt-2 { padding-top: calc(var(--spacing) * 2); } - .pt-6 { - padding-top: calc(var(--spacing) * 6); - } .pb-6 { padding-bottom: calc(var(--spacing) * 6); } @@ -8603,9 +8530,6 @@ .text-info { color: var(--color-info); } - .text-primary { - color: var(--color-primary); - } .text-slate-900 { color: var(--color-slate-900); } diff --git a/Sources/ViewController/Live.swift b/Sources/ViewController/Live.swift index c346d6e..ef0d0cc 100644 --- a/Sources/ViewController/Live.swift +++ b/Sources/ViewController/Live.swift @@ -65,10 +65,13 @@ extension ViewController.Request { // let user = try currentUser() return ( userID, - try await database.projects.fetch(userID, .init(page: 1, per: 25)) + try await database.projects.fetch(userID, .init(page: 1, per: 25)), + profile.theme ) - } onSuccess: { (userID, projects) in - ProjectsTable(userID: userID, projects: projects) + } onSuccess: { (userID, projects, theme) in + MainPage(displayFooter: true, theme: theme) { + ProjectsTable(userID: userID, projects: projects) + } } } }