aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-10-05 09:46:42 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-10-05 18:13:17 +0200
commit9de8f03c734efea8cbb881d1d25c6f18a2a258b2 (patch)
tree264556cb9912bfcbcd93793d66dc7ce06c553832 /main.js
parenta403a0ccfac410f8f2fde4100c16ac536c826ad7 (diff)
Also show popover on smaller screens.
(Within reasons.) Mobile viewports have width <576px, yet should be able to see popover.
Diffstat (limited to 'main.js')
-rw-r--r--main.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.js b/main.js
index 60233de..2822cf4 100644
--- a/main.js
+++ b/main.js
@@ -5282,8 +5282,7 @@ const disposePopover = (function() {
popover.dispose();
}
- const size = event.map.getSize();
- if (size[0] < 576 || size[1] < 576) {
+ if (window.innerWidth < 200) {
return; /* skip popover if the map is too small */
}