Skip to content

Commit 0789b33

Browse files
author
Gusted
committed
Hack mobile CSS together
- Still requires patch on mCaptcha's side to provide good iframe settings & good CSS on widget HTML.
1 parent 08790c5 commit 0789b33

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

templates/user/auth/signup_inner.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
</div>
5656
{{end}}
5757
{{if and .EnableCaptcha (eq .CaptchaType "mcaptcha")}}
58-
<div class="inline field required df ac">
59-
<label></label>
60-
<div class="border-secondary" id="mcaptcha__widget-container" style="width: 304px; height: 78px"></div>
58+
<div class="inline field required df ac db-small">
59+
<label>{{.locale.Tr "captcha"}}</label>
60+
<div class="border-secondary w-100-small" id="mcaptcha__widget-container" style="width: 50%; height: 5em"></div>
6161
<div class="m-captcha" data-sitekey="{{ .McaptchaSitekey }}" data-instance-url="{{ .McaptchaURL }}"></div>
6262
</div>
6363
{{end}}

web_src/less/helpers.less

+5
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,8 @@
167167
.py-3 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
168168
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
169169
.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
170+
171+
@media @mediaSm {
172+
.db-small { display: block !important; }
173+
.w-100-small { width: 100% !important; }
174+
}

0 commit comments

Comments
 (0)