Skip to content

Commit 511e011

Browse files
author
Gusted
committed
Align label with checkbox
- Follow up from go-gitea#21655 (comment) - Use vertical-align and line-height to get it to align exactly with the checkbox.
1 parent 4827f42 commit 511e011

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

templates/install.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
<input id="log_root_path" name="log_root_path" value="{{.log_root_path}}" placeholder="log" required>
163163
<span class="help">{{.locale.Tr "install.log_root_path_helper"}}</span>
164164
</div>
165-
<div class="inline field">
165+
<div class="inline field left-label">
166166
<label for="enable_update_checker">{{.locale.Tr "install.enable_update_checker"}}</label>
167167
<div class="ui checkbox">
168168
<input name="enable_update_checker" type="checkbox">

web_src/less/_install.less

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
margin-left: @input-padding+15px;
2121
}
2222

23+
&.left-label label {
24+
vertical-align: top;
25+
line-height: 17px;
26+
}
27+
2328
&.optional {
2429
.title {
2530
margin-left: 38%;

0 commit comments

Comments
 (0)