Skip to content

Commit e0c0eff

Browse files
committed
fix: google button doesn't show up in mobile view
1 parent 4bb54eb commit e0c0eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/google_one_tap_button.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<span class="pe-2" style="height: 44px; max-width: 200px" data-replace-login-spinner>
1+
<span class="pe-2" style="height: 44px; width: 200px;" data-replace-login-spinner>
22
<span id="g_id_signin_desktop" class="d-none d-md-inline"></span>
33
<span id="g_id_signin_mobile" class="d-md-none"></span>
44
</span>
@@ -22,6 +22,7 @@
2222
});
2323
google.accounts.id.renderButton(document.getElementById("g_id_signin_mobile"), {
2424
shape: "rectangular",
25+
width: 200,
2526
type: "icon"
2627
});
2728
}

0 commit comments

Comments
 (0)