From b9d3e796fee31b898a8afc52437248426c013539 Mon Sep 17 00:00:00 2001 From: hadi Date: Fri, 31 Mar 2023 14:07:30 +0200 Subject: [PATCH] Set a max height for select tags --- api/js/etemplate/Et2Select/Et2Select.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 04c8b15fd2..dbffefa3b7 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -182,6 +182,10 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) ::part(display-label) { margin: 0; } + :host::part(display-label) { + max-height: 8em; + overflow-y: auto; + } ` ]; }