mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
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:
1 file changed
+8
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user