diff --git a/src/lib/components/admin/AdminAuditCard.svelte b/src/lib/components/admin/AdminAuditCard.svelte
index f890a15..ad08869 100644
--- a/src/lib/components/admin/AdminAuditCard.svelte
+++ b/src/lib/components/admin/AdminAuditCard.svelte
@@ -11,8 +11,8 @@
-
{audit.action}
-
+
{audit.action}
+
@@ -76,6 +76,15 @@
align-items: center;
justify-content: space-between;
flex-grow: 1;
+ gap: 1rem;
+ }
+
+ .audit-log-stamp {
+ margin-left: auto;
+
+ @media screen and (max-width: 768px) {
+ display: none;
+ }
}
.audit-log.expanded :global(svg) {
diff --git a/src/lib/theme-mode.ts b/src/lib/theme-mode.ts
index ad786db..a1e41ad 100644
--- a/src/lib/theme-mode.ts
+++ b/src/lib/theme-mode.ts
@@ -12,10 +12,10 @@ export const themeMode = writable
('light', (set) => {
});
/**
- * Send a theme to the server so that it can be saved as a cookie.
- * @param theme - theme to send to server
+ * Save theme as a cookie.
+ * @param theme - theme to save
*/
-export const setThemeCookie = async (theme: ThemeModeType) =>
+export const setThemeCookie = (theme: ThemeModeType) =>
(document.cookie = `themeMode=${theme}; path=/; SameSite=Lax; Max-Age=${THEME_COOKIE_MAX_AGE}`);
export const forwardInitialTheme = () =>
@@ -34,7 +34,7 @@ export const forwardInitialTheme = () =>
const unsubscribeForward = themeMode.subscribe(async (theme) => {
document.documentElement.setAttribute('theme-base', theme);
- await setThemeCookie(theme);
+ setThemeCookie(theme);
});
uaTheme?.addEventListener?.('change', uaSetter);