From 833627b6ca4066f70faa87a78d6a993075a378f8 Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 2 Jul 2024 13:32:12 +0200 Subject: [PATCH] Resize grid for smaller windows --- packages/base/style/layerBrowser.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/base/style/layerBrowser.css b/packages/base/style/layerBrowser.css index 92bedc9b..e77d60ae 100644 --- a/packages/base/style/layerBrowser.css +++ b/packages/base/style/layerBrowser.css @@ -57,10 +57,16 @@ display: grid; gap: 1.25rem; grid-template-rows: 1fr; - grid-template-columns: repeat(5, minmax(0px, 1fr)); + grid-template-columns: repeat(3, minmax(0px, 1fr)); padding: 1rem 2rem; } +@media (min-width: 1400px) { + .jgis-layer-browser-grid { + grid-template-columns: repeat(5, minmax(0px, 1fr)); + } +} + .jgis-dialog-override { width: calc(100% - 4rem); max-width: 100%;