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.
This commit is contained in:
Chirag Aggarwal committed 2026-06-18 12:35:33 +05:30
1 parent 45a95e5a71
commit bce070ca4d
1 file changed
+8 -1
+8 -1
View File
@@ -9,7 +9,7 @@
<div class="auth-bg">
<section>
<div class="console-container">
<div class="oauth2-shell">
<slot />
</div>
</section>
@@ -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;