Skip to content

Commit

Permalink
Use <span> instead of <label>
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Jul 29, 2022
1 parent 9208741 commit f4e417b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/user/auth/signup_inner.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
</div>
{{end}}
{{if and .EnableCaptcha (eq .CaptchaType "mcaptcha")}}
<div class="inline field required df ac db-small">
<label>{{.locale.Tr "captcha"}}</label>
<div class="inline field df ac db-small">
<span>{{.locale.Tr "captcha"}}</span>
<div class="border-secondary w-100-small" id="mcaptcha__widget-container" style="width: 50%; height: 5em"></div>
<div class="m-captcha" data-sitekey="{{ .McaptchaSitekey }}" data-instance-url="{{ .McaptchaURL }}"></div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion web_src/less/_form.less
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ textarea:focus,
padding-left: @create-page-form-input-padding+30px;
}

.inline.field > label {
.inline.field > label,
.inline.field > span {
text-align: right;
width: @create-page-form-input-padding;
word-wrap: break-word;
Expand Down

0 comments on commit f4e417b

Please sign in to comment.