From bce070ca4ddb3d4be7670f2f868cdf52da2f00ee Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 18 Jun 2026 12:35:33 +0530 Subject: [PATCH] fix: prevent OAuth2 consent/device card from collapsing The oauth2 layout wrapped its slot in the generic .console-container class, which as a flex item in the row-flex section with no definite width shrank to min-content, collapsing the card (and its width:100% descendants) into a narrow sliver. Use a dedicated .oauth2-shell with a fixed max-width and make the section stretch and center its content. --- src/routes/(public)/oauth2/+layout.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/routes/(public)/oauth2/+layout.svelte b/src/routes/(public)/oauth2/+layout.svelte index da38c1dc4..39bc61b82 100644 --- a/src/routes/(public)/oauth2/+layout.svelte +++ b/src/routes/(public)/oauth2/+layout.svelte @@ -9,7 +9,7 @@
-
+
@@ -47,8 +47,15 @@ justify-content: space-between; section { flex: 1; + width: 100%; display: flex; align-items: center; + justify-content: center; + padding-inline: 1rem; + } + .oauth2-shell { + width: 100%; + max-width: 28rem; } footer { padding: 2rem 1rem;