style: add responsive CSS tweaks for very narrow screens, mobile fullscreen windows, and safe-area toast positioning
This commit is contained in:
@@ -240,8 +240,8 @@ dp-upload[hidden] {
|
||||
|
||||
.dp-toast-host {
|
||||
position: fixed;
|
||||
bottom: 1rem;
|
||||
right: 1rem;
|
||||
bottom: max(1rem, env(safe-area-inset-bottom));
|
||||
right: max(1rem, env(safe-area-inset-right));
|
||||
z-index: 1100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -251,7 +251,7 @@ dp-upload[hidden] {
|
||||
|
||||
.dp-toast {
|
||||
min-width: 12rem;
|
||||
max-width: 22rem;
|
||||
max-width: min(22rem, calc(100vw - 2rem));
|
||||
padding: 0.625rem 0.875rem;
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg-card);
|
||||
|
||||
Reference in New Issue
Block a user