From 94aad35a120b05897a0b6b97f0d9605a52ea9642 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 7 Apr 2024 10:53:28 +0200 Subject: [PATCH] Fix right-aligned input icons (#30301) Fix regression from https://github.com/go-gitea/gitea/pull/30194 where right-aligned items would not display correctly. Before and After: Screenshot 2024-04-06 at 01 12 11 Screenshot 2024-04-06 at 01 11 49 Frontpage search tweaked to accommodate (which was the reason for the changes that broken above): Screenshot 2024-04-06 at 01 11 34 Screenshot 2024-04-06 at 01 11 39 --- web_src/css/modules/input.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/web_src/css/modules/input.css b/web_src/css/modules/input.css index 48cd2fa9ff..18b785ac82 100644 --- a/web_src/css/modules/input.css +++ b/web_src/css/modules/input.css @@ -48,8 +48,11 @@ cursor: default; position: absolute; text-align: center; - top: 50%; - transform: translateY(-50%); + top: 0; + right: 0; + margin: 0; + height: 100%; + width: 2.67142857em; opacity: 0.5; border-radius: 0 0.28571429rem 0.28571429rem 0; pointer-events: none; @@ -58,6 +61,8 @@ .ui.icon.input > i.icon.is-loading { position: absolute !important; + height: 28px; + top: 4px; } .ui.icon.input > i.icon.is-loading > * { @@ -78,7 +83,7 @@ .ui[class*="left icon"].input > i.icon { right: auto; - left: 8px; + left: 1px; border-radius: 0.28571429rem 0 0 0.28571429rem; } .ui[class*="left icon"].input > i.circular.icon {