From 648d9a3cf677f3ec3c21b44c8d2a487a4fe7e875 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 26 Jan 2019 13:50:45 -0800 Subject: [PATCH] fix: tweak underlining of links (#920) --- src/inline-script/inline-script.js | 5 ----- src/routes/_components/profile/AccountProfile.html | 12 +++++++++--- .../_components/profile/AccountProfileMeta.html | 6 +++++- .../_components/profile/AccountProfileNote.html | 6 +++++- src/routes/_components/status/Notification.html | 10 ++++++++-- src/routes/_components/status/Status.html | 5 +++-- src/routes/_components/status/StatusContent.html | 4 ++++ src/routes/_components/status/StatusMentions.html | 6 +++++- src/routes/_components/status/StatusSpoiler.html | 5 +++++ src/routes/_pages/settings/general.html | 2 +- src/routes/_store/observers/loggedInObservers.js | 2 -- .../_store/observers/underlineLinksObservers.js | 12 ------------ src/scss/global.scss | 4 ---- 13 files changed, 45 insertions(+), 34 deletions(-) delete mode 100644 src/routes/_store/observers/underlineLinksObservers.js diff --git a/src/inline-script/inline-script.js b/src/inline-script/inline-script.js index d7f54067..3d9d4aad 100644 --- a/src/inline-script/inline-script.js +++ b/src/inline-script/inline-script.js @@ -45,11 +45,6 @@ if (hasLocalStorage && localStorage.store_disableCustomScrollbars === 'true') { theScrollbarStyle.setAttribute('media', 'only x') // disables the style } -if (hasLocalStorage && localStorage.store_underlineLinks === 'true') { - // if the user wants links underlined, then underline 'em - document.body.classList.add('underline-links') -} - // hack to make the scrollbars rounded only on macOS if (/mac/i.test(navigator.platform)) { document.documentElement.style.setProperty('--scrollbar-border-radius', '50px') diff --git a/src/routes/_components/profile/AccountProfile.html b/src/routes/_components/profile/AccountProfile.html index 2a255db4..0432032b 100644 --- a/src/routes/_components/profile/AccountProfile.html +++ b/src/routes/_components/profile/AccountProfile.html @@ -1,5 +1,5 @@

Profile for {accountName}

-