From 511e011430ce4f9c1abd461f51b96b88395061f7 Mon Sep 17 00:00:00 2001 From: Gusted Date: Wed, 2 Nov 2022 09:40:12 +0100 Subject: [PATCH] Align label with checkbox - Follow up from https://github.com/go-gitea/gitea/pull/21655#issuecomment-1299428018 - Use vertical-align and line-height to get it to align exactly with the checkbox. --- templates/install.tmpl | 2 +- web_src/less/_install.less | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/install.tmpl b/templates/install.tmpl index 8d6918e6a29c5..7ce364d7551a9 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -162,7 +162,7 @@ {{.locale.Tr "install.log_root_path_helper"}} -
+
diff --git a/web_src/less/_install.less b/web_src/less/_install.less index 5769ef68ba134..38de1a30439c3 100644 --- a/web_src/less/_install.less +++ b/web_src/less/_install.less @@ -20,6 +20,11 @@ margin-left: @input-padding+15px; } + &.left-label label { + vertical-align: top; + line-height: 17px; + } + &.optional { .title { margin-left: 38%;