Skip to content

Commit 8559fa3

Browse files
committed
fix css style
1 parent a17503c commit 8559fa3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules/templates/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ func disableFormAutofill() template.HTML {
996996
and these dummy form values won't be used by backend code.
997997
*/
998998
return `
999-
<div style="position: absolute; width: 1px; height: 1px; overflow: hidden; z-index: -10000;">
999+
<div class="auto-fill-dummy">
10001000
<input type="text" name="_autofill_dummy_username" class="ays-ignore">
10011001
<input type="password" name="_autofill_dummy_password" class="ays-ignore">
10021002
</div>

web_src/less/_base.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,13 @@ a.ui.card:hover,
962962
}
963963

964964
.form {
965+
.auto-fill-dummy {
966+
position: absolute;
967+
width: 1px;
968+
height: 1px;
969+
overflow: hidden;
970+
z-index: -10000;
971+
}
965972
.sub.field {
966973
margin-left: 25px;
967974
}

0 commit comments

Comments
 (0)