From 424c3cebbaae41f24665f682fe7efbf0079361ef Mon Sep 17 00:00:00 2001 From: Matthieu Baumann Date: Wed, 11 Sep 2024 11:35:19 +0200 Subject: [PATCH] fix css browser text input width so that user can redefine css --- examples/al-init-custom-options.html | 3 +++ package.json | 2 +- src/core/src/tile_fetcher.rs | 1 + src/css/aladin.css | 16 +++++----------- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/examples/al-init-custom-options.html b/examples/al-init-custom-options.html index e27cc192..b6ed58d9 100644 --- a/examples/al-init-custom-options.html +++ b/examples/al-init-custom-options.html @@ -34,6 +34,9 @@ }); \ No newline at end of file diff --git a/package.json b/package.json index b62214db..f92c770b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "homepage": "https://aladin.u-strasbg.fr/", "name": "aladin-lite", "type": "module", - "version": "3.5.0-beta", + "version": "3.5.1-beta", "description": "An astronomical HiPS visualizer in the browser", "author": "Thomas Boch and Matthieu Baumann", "license": "GPL-3", diff --git a/src/core/src/tile_fetcher.rs b/src/core/src/tile_fetcher.rs index 569cf13a..2e165d7c 100644 --- a/src/core/src/tile_fetcher.rs +++ b/src/core/src/tile_fetcher.rs @@ -129,6 +129,7 @@ impl TileFetcherQueue { let min_order = cfg.get_min_depth_texture(); let dl = downloader.clone(); + #[cfg(target_arch = "wasm32")] utils::set_timeout( move || { for tile_cell in crate::healpix::cell::ALLSKY_HPX_CELLS_D0 { diff --git a/src/css/aladin.css b/src/css/aladin.css index e39d24be..aea85606 100644 --- a/src/css/aladin.css +++ b/src/css/aladin.css @@ -210,7 +210,6 @@ background: whitesmoke; border-radius: 2px; position: absolute; - max-width: 15em; font-size: inherit; font-family: monospace; @@ -226,7 +225,7 @@ /*overflow-y: auto;*/ overflow-y: none; max-height: 500px; - max-width: fit-content; + /*max-width: fit-content;*/ height: fit-content; } @@ -1117,28 +1116,23 @@ canvas { width: 4.5rem; } -/* -.aladin-input-text.aladin-dark-theme.search.aladin-HiPS-search { - width: 100%; - -}*/ - .aladin-stack-box { width: 17rem; } .aladin-HiPS-browser-box .aladin-input-text { - width: 300px; + width: 100%; + min-width: 300px; padding: 0.5rem; } .aladin-cat-browser-box .aladin-input-text.search { - width: 300px; + width: 100%; + min-width: 300px; padding-top: 0.5rem; padding-bottom: 0.5rem; } - .aladin-location { position: absolute; top: 0.2rem;