diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-11-14 06:05:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 06:05:10 +0100 |
commit | 6da9df774ea9973124fe7e2f5a9dd0862a22acd8 (patch) | |
tree | 75688005ac4668894fd6aa71db8b6f7a3aeb8f01 /app/javascript | |
parent | 147d8bd8fc7aa8b55cd5a9103941c52441ed4365 (diff) |
Fix dropdown menu on profiles not being accessible on narrow screens in web UI (#20620)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/features/account/components/header.js | 2 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/account/components/header.js b/app/javascript/mastodon/features/account/components/header.js index c38eea55b..1825e0de6 100644 --- a/app/javascript/mastodon/features/account/components/header.js +++ b/app/javascript/mastodon/features/account/components/header.js @@ -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 && ( diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 606e20355..c3011f7c9 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -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; @@ -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; |