Skip to content

Commit e3b88eb

Browse files
committed
fix: google one-tap button height and display
1 parent b2a8f13 commit e3b88eb

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

routers/root.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def page_wrapper(
779779
):
780780
with gui.div(
781781
className="d-md-flex flex-grow-1 justify-content-center align-items-center bg-white top-0 left-0",
782-
style={"display": "none"},
782+
style={"display": "none", "zIndex": "10"},
783783
id="mobile_search_container",
784784
):
785785
_render_search_bar_with_redirect(
@@ -804,11 +804,8 @@ def page_wrapper(
804804
onClick=get_js_show_mobile_search(),
805805
)
806806

807-
with (
808-
gui.styled("& { max-width: 50%; } & > * { height: 24px; }"),
809-
gui.div(
810-
className="d-flex gap-2 justify-content-end flex-wrap align-items-center"
811-
),
807+
with gui.div(
808+
className="d-flex gap-2 justify-content-end flex-wrap align-items-center"
812809
):
813810
if not show_search_bar:
814811
render_header_link(

templates/google_one_tap_button.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
<span class="pe-2" style="height: 44px; min-width: 40px; max-width: 200px;" data-replace-login-spinner>
1+
<style>
2+
#g_id_signin_mobile div:has(> svg) {
3+
min-width: 40px;
4+
min-height: 40px;
5+
}
6+
</style>
7+
8+
<span class="pe-2" style="min-width: 40px; max-width: 200px;" data-replace-login-spinner>
29
<span id="g_id_signin_desktop" class="d-none d-md-inline"></span>
310
<span id="g_id_signin_mobile" class="d-md-none"></span>
411
</span>

workspaces/widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def global_workspace_selector(user: AppUser, session: dict):
4747
except (KeyError, IndexError):
4848
current = workspaces[0]
4949

50-
popover, content = gui.popover(interactive=True, placement="bottom")
50+
with gui.styled("& button { height: 24px; }"), gui.div():
51+
popover, content = gui.popover(interactive=True, placement="bottom")
5152

5253
with popover:
5354
if current.is_personal and current.created_by_id == user.id:

0 commit comments

Comments
 (0)