From 5948cab4fb7b8f3e44f3911628d5088d82dfe398 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Tue, 6 Aug 2024 14:19:01 +0000 Subject: [PATCH] web: move iPadOS workaround to global level --- web/src/components/save/Omnibox.svelte | 2 -- web/src/routes/+layout.svelte | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 931aa21a..80d89aba 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -254,8 +254,6 @@ /* workaround for safari */ font-size: inherit; - user-select: text; - -webkit-user-select: text; } #link-area:focus-visible { diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 06336519..fe31e753 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -365,6 +365,12 @@ background-color: var(--blue) !important; } + /* workaround for typing into inputs being ignored on iPadOS 15 */ + :global(input) { + user-select: text; + -webkit-user-select: text; + } + @media (hover: hover) { :global(button:hover) { background-color: var(--button-hover);