From 47817e4df52acd99ed1a5ec659bf7ef0139d1062 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 28 Jul 2022 10:08:17 +0200 Subject: [PATCH] fix size and alignment of image only button padding-left: 1px also looks nicer for buttons with image+label --- api/js/etemplate/Et2Button/Et2Button.ts | 3 +++ api/templates/default/etemplate2.css | 1 + 2 files changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2Button/Et2Button.ts b/api/js/etemplate/Et2Button/Et2Button.ts index afb66267c5..cd7c7a0be4 100644 --- a/api/js/etemplate/Et2Button/Et2Button.ts +++ b/api/js/etemplate/Et2Button/Et2Button.ts @@ -95,6 +95,9 @@ export class Et2Button extends Et2InputWidget(SlButton) } .button__label { } + .button__prefix { + padding-left: 1px; + } `, ]; } diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index 57032c071c..5da0ee1719 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -2879,6 +2879,7 @@ div.et2_toolbar.ui-widget-header { } .nextmatch_header_row et2-button, .nextmatch_header_row et2-searchbox, .et2_toolbar et2-button { margin-right: 1ex; + min-width: 24px; } .nextmatch_header_row et2-button::part(container){ height: 18px;