From c40b01fc48b66c7ba3c9d6868864ee8d20059fdc Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 2 May 2024 12:15:27 +0200 Subject: [PATCH] fix: add max-width to panel in landscape mode In some situation in mobile (eg. when the keyboard is used), the screen is still considered as landscape, but it is very small, so make sure the panel does not overflow on the right. cf #1788 --- umap/static/umap/css/panel.css | 1 + 1 file changed, 1 insertion(+) diff --git a/umap/static/umap/css/panel.css b/umap/static/umap/css/panel.css index 73e82500..e980e430 100644 --- a/umap/static/umap/css/panel.css +++ b/umap/static/umap/css/panel.css @@ -90,6 +90,7 @@ top: 0; margin-top: var(--panel-gutter); width: var(--panel-width); + max-width: calc(100% - var(--panel-gutter) * 2 - var(--control-size)) } .panel.condensed { max-height: 500px;