From 47da5e815bb3cfe613bafbd991cc84c6e3fb0b51 Mon Sep 17 00:00:00 2001 From: bopol Date: Tue, 23 Feb 2021 10:23:03 +0100 Subject: [PATCH] Improve alt text layout for icons You can try in Firefox with about:config, svg.disabled The alt text of subscriptions is not mixed with the settings one anymore --- pug/includes/layout.pug | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pug/includes/layout.pug b/pug/includes/layout.pug index df8ba9f..e24561f 100644 --- a/pug/includes/layout.pug +++ b/pug/includes/layout.pug @@ -15,9 +15,13 @@ html .links a(href="/").link.home CloudTube a(href="/subscriptions" title="Subscriptions").link.icon-link - img(src=getStaticURL("html", "/static/images/subscriptions.svg") width=30 height=25 alt="Subscriptions.").icon + svg(width=30 height=25) + image(href=getStaticURL("html", "/static/images/subscriptions.svg") alt="Subscriptions.").icon + title Subscriptions a(href="/settings" title="Settings").link.icon-link - img(src=getStaticURL("html", "/static/images/settings.svg") width=25 height=25 alt="Settings.").icon + svg(width=25 height=25) + image(href=getStaticURL("html", "/static/images/settings.svg") alt="Settings.").icon + title Settings form(method="get" action="/search").search-form input(type="text" placeholder="Search" name="q" autocomplete="off" value=query).search