Skip to content

Commit

Permalink
Fix dropdown menu on profiles not being accessible on narrow screens …
Browse files Browse the repository at this point in the history
…in web UI (mastodon#20620)
  • Loading branch information
Gargron committed Nov 14, 2022
1 parent 147d8bd commit 6da9df7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/javascript/mastodon/features/account/components/header.js
Expand Up @@ -314,8 +314,6 @@ class Header extends ImmutablePureComponent {
<Avatar account={suspended || hidden ? undefined : account} size={90} />
</a>

<div className='spacer' />

{!suspended && (
<div className='account__header__tabs__buttons'>
{!hidden && (
Expand Down
12 changes: 12 additions & 0 deletions app/javascript/styles/mastodon/components.scss
Expand Up @@ -7026,8 +7026,11 @@ noscript {
&__tabs {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-top: -55px;
padding-top: 10px;
gap: 8px;
overflow: hidden;

&__buttons {
display: flex;
Expand All @@ -7036,6 +7039,15 @@ noscript {
padding-top: 55px;
overflow: hidden;

.button {
flex-shrink: 1;
white-space: nowrap;

@media screen and (max-width: $no-gap-breakpoint) {
min-width: 0;
}
}

.icon-button {
border: 1px solid lighten($ui-base-color, 12%);
border-radius: 4px;
Expand Down

0 comments on commit 6da9df7

Please sign in to comment.