From 5a3f174d561cbdc79a597cd2b9502ed058d372da Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 13 Jul 2023 12:58:56 +0200 Subject: [PATCH] Fix follow link style in embeds (#25965) --- app/helpers/accounts_helper.rb | 2 +- app/javascript/styles/mastodon/statuses.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index c82dc492dc..6301919a9e 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -22,7 +22,7 @@ module AccountsHelper def account_action_button(account) return if account.memorial? || account.moved? - link_to ActivityPub::TagManager.instance.url_for(account), class: 'button', target: '_new' do + link_to ActivityPub::TagManager.instance.url_for(account), class: 'button logo-button', target: '_new' do safe_join([logo_as_symbol, t('accounts.follow')]) end end diff --git a/app/javascript/styles/mastodon/statuses.scss b/app/javascript/styles/mastodon/statuses.scss index e093bdf97b..b6d4f98cce 100644 --- a/app/javascript/styles/mastodon/statuses.scss +++ b/app/javascript/styles/mastodon/statuses.scss @@ -77,6 +77,18 @@ } } +.button.logo-button svg { + width: 20px; + height: auto; + vertical-align: middle; + margin-inline-end: 5px; + fill: $primary-text-color; + + @media screen and (max-width: $no-gap-breakpoint) { + display: none; + } +} + .embed { .status__content[data-spoiler='folded'] { .e-content {