Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix media modal footer's “external link” not being a link #17561

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

ClearlyClaire
Copy link
Contributor

This allows ctrl-clicking or middle-clicking the “external link” icon and have the expected behavior.

Comment on lines +134 to +140
if (href) {
contents = (
<a href={href} target='_blank' rel='noopener noreferrer'>
{contents}
</a>
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a link inside a button is weird, but it's the only way I have found to have the same padding than on buttons, as for some reason, Firefox seems to put some extra padding inside buttons, that I could not influence no matter what attribute I tried overriding.

Copy link
Member

@Gargron Gargron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link inside button seems very wrong, will have to investigate later

@Gargron Gargron merged commit 255748d into mastodon:main Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants