workaournd about boxes stable size when stretching up auth page
This commit is contained in:
parent
03267cfc35
commit
20ac745ce9
1 changed files with 14 additions and 0 deletions
|
|
@ -285,6 +285,20 @@ globalStyle(`${AuthCardContent} input::placeholder`, {
|
||||||
color: 'rgba(232, 228, 223, 0.35)',
|
color: 'rgba(232, 228, 223, 0.35)',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Floor for input boxes when the modal is height-constrained (small screen
|
||||||
|
* or on-screen keyboard). Natural input height is 3rem; floor at 2rem so
|
||||||
|
* the keyboard can still squeeze the form to ~66% before hitting the stop.
|
||||||
|
* Past the floor, flex can't compress further — the form overflows the
|
||||||
|
* AuthLayout (overflow: hidden) and the bottom is covered by the keyboard.
|
||||||
|
*
|
||||||
|
* `:has(> input)` targets the folds Input's outer wrapper (the box that
|
||||||
|
* flex-shrinks) rather than the native <input>. Excludes checkboxes.
|
||||||
|
*/
|
||||||
|
globalStyle(`${AuthCardContent} div:has(> input:not([type="checkbox"]))`, {
|
||||||
|
minHeight: toRem(48),
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Chromium's UA stylesheet paints a saved-credentials overlay on
|
* Chromium's UA stylesheet paints a saved-credentials overlay on
|
||||||
* :-webkit-autofill inputs, forcing a light background and dark text. Without
|
* :-webkit-autofill inputs, forcing a light background and dark text. Without
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue