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) {
|
||||
.drawer-backdrop {
|
||||
right: 0; /* Mobile portrait: backdrop prend tout l'écran */
|
||||
background: rgba(0, 0, 0, 0.4); /* Plus sombre sur mobile */
|
||||
display: none; /* Mobile portrait: le drawer couvre 100vw, pas besoin de backdrop */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -716,8 +716,7 @@ function handleSettingsClick() {
|
||||
|
||||
@media (max-width: 768px) and (orientation: portrait) {
|
||||
.drawer-backdrop {
|
||||
left: 0; /* Mobile portrait: backdrop commence à gauche car drawer prend 100vw */
|
||||
background: rgba(0, 0, 0, 0.4); /* Plus sombre sur mobile */
|
||||
display: none; /* Mobile portrait: le drawer couvre 100vw, pas besoin de backdrop */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user