Remove backdrop on mobile portrait for full-width drawers
Remove the backdrop element in mobile portrait mode since the drawer now covers 100vw, making the overlay unnecessary. Applied to both RendererDrawer and ServerDrawer components.
This commit is contained in:
@@ -449,8 +449,7 @@ async function handleTransferQueue(event: Event, targetRendererId: string) {
|
|||||||
|
|
||||||
@media (max-width: 768px) and (orientation: portrait) {
|
@media (max-width: 768px) and (orientation: portrait) {
|
||||||
.drawer-backdrop {
|
.drawer-backdrop {
|
||||||
right: 0; /* Mobile portrait: backdrop prend tout l'écran */
|
display: none; /* Mobile portrait: le drawer couvre 100vw, pas besoin de backdrop */
|
||||||
background: rgba(0, 0, 0, 0.4); /* Plus sombre sur mobile */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -716,8 +716,7 @@ function handleSettingsClick() {
|
|||||||
|
|
||||||
@media (max-width: 768px) and (orientation: portrait) {
|
@media (max-width: 768px) and (orientation: portrait) {
|
||||||
.drawer-backdrop {
|
.drawer-backdrop {
|
||||||
left: 0; /* Mobile portrait: backdrop commence à gauche car drawer prend 100vw */
|
display: none; /* Mobile portrait: le drawer couvre 100vw, pas besoin de backdrop */
|
||||||
background: rgba(0, 0, 0, 0.4); /* Plus sombre sur mobile */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user