* [pdm-devel] [PATCH yew-widget-toolkit-assets] dropdown: limit height of picker
@ 2025-09-11 6:45 ` Dominik Csapak
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Csapak @ 2025-09-11 6:45 UTC (permalink / raw)
To: pdm-devel, yew-devel
so that it does not grow to (nearly) the full screen height.
Better solution is to add some option to the aligning code that limits
the height so that the field of the dropdown is always visible, but for
now this is an ok stopgap.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
note we have to update the submodule in pdm for this to take effect
scss/_dropdown.scss | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss
index 671b872..ab640c0 100644
--- a/scss/_dropdown.scss
+++ b/scss/_dropdown.scss
@@ -6,7 +6,9 @@
@include elevation-box-shadow(1);
- max-height: 100dvh;
+ // limit the height of the dropdown so it does not fill the whole screen.
+ // FIXME: add an aligning option to limit the height so the field is always viisble
+ max-height: min(50dvh, 400px) ! important;
max-width: 100dvw;
/* make e.g. the header menu overflow visible */
overflow: visible;
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [yew-devel] [PATCH yew-widget-toolkit-assets] dropdown: limit height of picker
@ 2025-09-11 6:45 ` Dominik Csapak
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Csapak @ 2025-09-11 6:45 UTC (permalink / raw)
To: pdm-devel, yew-devel
so that it does not grow to (nearly) the full screen height.
Better solution is to add some option to the aligning code that limits
the height so that the field of the dropdown is always visible, but for
now this is an ok stopgap.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
note we have to update the submodule in pdm for this to take effect
scss/_dropdown.scss | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss
index 671b872..ab640c0 100644
--- a/scss/_dropdown.scss
+++ b/scss/_dropdown.scss
@@ -6,7 +6,9 @@
@include elevation-box-shadow(1);
- max-height: 100dvh;
+ // limit the height of the dropdown so it does not fill the whole screen.
+ // FIXME: add an aligning option to limit the height so the field is always viisble
+ max-height: min(50dvh, 400px) ! important;
max-width: 100dvw;
/* make e.g. the header menu overflow visible */
overflow: visible;
--
2.47.3
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-11 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-11 6:45 [pdm-devel] [PATCH yew-widget-toolkit-assets] dropdown: limit height of picker Dominik Csapak
2025-09-11 6:45 ` [yew-devel] " Dominik Csapak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.