From d7695eb740fe5f714b9bce61897deb5c343114ec Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 19 Dec 2024 15:24:15 +0000 Subject: [PATCH] Bug 36285: (QA follow-up): Use 30% as min-width, but if input has 'size' property, utilize that instead Addresing Katrin's comment: * Input field lengths appear longer in general - I quite like that in general. But wondering about fields with a set max-length like the copyright year in this form. It's still not the same length as the other input fields with the patch applied, but also not 'year-sized' anymore. Similar for zipcode in administration/libraries. --- koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss index 48569a29574..fb649bef661 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss @@ -129,10 +129,13 @@ fieldset { border-color: rgba(60, 60, 60, 0.26); border-width: 1px; border-radius: 4px; - min-width: 30%; + min-width: var(--size, 30%); line-height: 1.5; } } + input[size] { + --size: attr(size, em); + } .v-select, select { -- 2.39.5