From 975d3c79c6a882291c69b31d25bfcd8b7896528c Mon Sep 17 00:00:00 2001 From: Kyle Mendell Date: Tue, 21 Apr 2026 11:55:43 -0500 Subject: [PATCH] fix: restore login screen background from not showing up --- frontend/package.json | 124 +++++++++--------- .../src/lib/components/login-wrapper.svelte | 11 +- frontend/src/routes/authorize/+page.svelte | 14 +- .../application-configuration/+page.svelte | 8 +- .../oidc-callback-url-input.svelte | 2 +- .../settings/admin/users/[id]/+page.svelte | 6 +- frontend/vite.config.ts | 4 +- 7 files changed, 93 insertions(+), 76 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 86333f2b..0357e283 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,64 +1,64 @@ { - "name": "pocket-id-frontend", - "version": "2.6.0", - "private": true, - "type": "module", - "scripts": { - "preinstall": "npx only-allow pnpm", - "dev": "vite dev --port 3000", - "build": "vite build", - "preview": "vite preview --port 3000", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check . && eslint .", - "format": "prettier --write ." - }, - "dependencies": { - "@simplewebauthn/browser": "^13.3.0", - "@tailwindcss/vite": "^4.2.2", - "axios": "^1.15.0", - "clsx": "^2.1.1", - "date-fns": "^4.1.0", - "jose": "^6.2.2", - "qrcode": "^1.5.4", - "runed": "^0.37.1", - "sveltekit-superforms": "^2.30.1", - "tailwind-merge": "^3.5.0", - "zod": "^4.3.6" - }, - "devDependencies": { - "@inlang/paraglide-js": "^2.15.3", - "@inlang/plugin-m-function-matcher": "^2.2.4", - "@inlang/plugin-message-format": "^4.4.0", - "@internationalized/date": "^3.12.0", - "@lucide/svelte": "^0.559.0", - "@sveltejs/adapter-static": "^3.0.10", - "@sveltejs/kit": "^2.57.1", - "@sveltejs/vite-plugin-svelte": "^6.2.4", - "@types/eslint": "^9.6.1", - "@types/node": "^24.12.2", - "@types/qrcode": "^1.5.6", - "bits-ui": "^2.17.3", - "eslint": "^9.39.4", - "eslint-config-prettier": "^10.1.8", - "eslint-plugin-svelte": "^3.17.0", - "formsnap": "^2.0.1", - "globals": "^16.5.0", - "mode-watcher": "^1.1.0", - "prettier": "^3.8.2", - "prettier-plugin-svelte": "^3.5.1", - "prettier-plugin-tailwindcss": "^0.7.2", - "rollup": "^4.60.1", - "svelte": "^5.55.3", - "svelte-check": "^4.4.6", - "svelte-sonner": "^1.1.0", - "tailwind-variants": "^3.2.2", - "tailwindcss": "^4.2.2", - "tslib": "^2.8.1", - "tw-animate-css": "^1.4.0", - "typescript": "^5.9.3", - "typescript-eslint": "^8.58.1", - "vite": "^7.3.2", - "vite-plugin-compression": "^0.5.1" - } + "name": "pocket-id-frontend", + "version": "2.6.0", + "private": true, + "type": "module", + "scripts": { + "preinstall": "npx only-allow pnpm", + "dev": "vite dev --port 3000", + "build": "vite build", + "preview": "vite preview --port 3000", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --check . && eslint .", + "format": "prettier --write ." + }, + "dependencies": { + "@simplewebauthn/browser": "^13.3.0", + "@tailwindcss/vite": "^4.2.2", + "axios": "^1.15.0", + "clsx": "^2.1.1", + "date-fns": "^4.1.0", + "jose": "^6.2.2", + "qrcode": "^1.5.4", + "runed": "^0.37.1", + "sveltekit-superforms": "^2.30.1", + "tailwind-merge": "^3.5.0", + "zod": "^4.3.6" + }, + "devDependencies": { + "@inlang/paraglide-js": "^2.15.3", + "@inlang/plugin-m-function-matcher": "^2.2.4", + "@inlang/plugin-message-format": "^4.4.0", + "@internationalized/date": "^3.12.0", + "@lucide/svelte": "^0.559.0", + "@sveltejs/adapter-static": "^3.0.10", + "@sveltejs/kit": "^2.57.1", + "@sveltejs/vite-plugin-svelte": "^6.2.4", + "@types/eslint": "^9.6.1", + "@types/node": "^24.12.2", + "@types/qrcode": "^1.5.6", + "bits-ui": "^2.17.3", + "eslint": "^9.39.4", + "eslint-config-prettier": "^10.1.8", + "eslint-plugin-svelte": "^3.17.0", + "formsnap": "^2.0.1", + "globals": "^16.5.0", + "mode-watcher": "^1.1.0", + "prettier": "^3.8.2", + "prettier-plugin-svelte": "^3.5.1", + "prettier-plugin-tailwindcss": "^0.7.2", + "rollup": "^4.60.1", + "svelte": "^5.55.3", + "svelte-check": "^4.4.6", + "svelte-sonner": "^1.1.0", + "tailwind-variants": "^3.2.2", + "tailwindcss": "^4.2.2", + "tslib": "^2.8.1", + "tw-animate-css": "^1.4.0", + "typescript": "^5.9.3", + "typescript-eslint": "^8.58.1", + "vite": "^7.3.2", + "vite-plugin-compression": "^0.5.1" + } } diff --git a/frontend/src/lib/components/login-wrapper.svelte b/frontend/src/lib/components/login-wrapper.svelte index 425048db..d8a4eaf9 100644 --- a/frontend/src/lib/components/login-wrapper.svelte +++ b/frontend/src/lib/components/login-wrapper.svelte @@ -37,7 +37,7 @@ isInitialLoad = !e?.from?.url; }); - const isDesktop = new MediaQuery('min-width: 1024px'); + const isDesktop = new MediaQuery('(min-width: 1024px)'); let alternativeSignInButton = $state({ href: '/login/alternative', label: m.alternative_sign_in_methods() @@ -61,7 +61,12 @@ {#if backgroundImageExists === undefined}
{:else if isDesktop.current} -
+