~cadence/tube-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2

[PATCH cloudtube] Autofocus lower searchbar on homepage

~lomanic
Details
Message ID
<161749376914.8967.9567096738691208079-0@git.sr.ht>
DKIM signature
missing
Download raw message
Patch: +1 -1
From: Lomanic <lomanic@hotmail.fr>

As I use the [Privacy Redirect extension][1] to get redirected to
my instance, I find it quite practical to just type youtube in
the URL bar then Ctrl+Enter (www.youtube.com), to be redirected
to my instance homepage where I can just type my search right
away.

[1]: https://github.com/SimonBrazell/privacy-redirect
---
 pug/home.pug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pug/home.pug b/pug/home.pug
index fa6814a..56a6fbc 100644
--- a/pug/home.pug
+++ b/pug/home.pug
@@ -11,7 +11,7 @@ block content
      p You're in control. Watch things your way.
      p Go on. What do you want to watch?
      form(method="get" action="/search").encouraging-search-form
        input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off").search.base-border-look
        input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off" autofocus).search.base-border-look
      p: a(href="/cant-think") ...can't think of anything?

    .encouraging-message
-- 
2.30.2
Details
Message ID
<e4b757fc-6922-42e7-9662-4be41277b49c@disroot.org>
In-Reply-To
<161749376914.8967.9567096738691208079-0@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
I agree that this would be useful for computers, but some mobile devices, 
when there is an autofocus field, will also bring up the keyboard 
automatically, which I find disorientating.

Ideally I'd like it to autofocus for computers only, and I'm not sure how 
I'd do that.

Cadence
Details
Message ID
<20210410010640.2cd02b11ba3863aa65ce4dfb@disroot.org>
In-Reply-To
<161749376914.8967.9567096738691208079-0@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
Resolved in 8486517 using user-agent sniffing. Not perfect, but it
should cover the _vast_ majority of cases.
Reply to thread Export thread (mbox)