diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-22 23:15:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 23:15:14 +0200 |
commit | 56efa8d22f041ca87efdfb2e95e80d213e72dde9 (patch) | |
tree | 70e0f50f6c435914c0a8c997830f2e2b0373cfb5 /app | |
parent | 45d3b324883c1e72ad5f9820d3c23f7f779f28db (diff) |
Fix reply not opening compose page on certain screen sizes in web UI (#19417)
Fix ellipsis next to icons on navigation panel on some browsers
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/actions/compose.js | 4 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js index 0cfc1868e..42d4ad8df 100644 --- a/app/javascript/mastodon/actions/compose.js +++ b/app/javascript/mastodon/actions/compose.js @@ -79,10 +79,8 @@ const messages = defineMessages({ uploadErrorPoll: { id: 'upload_error.poll', defaultMessage: 'File upload not allowed with polls.' }, }); -const COMPOSE_PANEL_BREAKPOINT = 600 + (285 * 1) + (10 * 1); - export const ensureComposeIsVisible = (getState, routerHistory) => { - if (!getState().getIn(['compose', 'mounted']) && window.innerWidth < COMPOSE_PANEL_BREAKPOINT) { + if (!getState().getIn(['compose', 'mounted'])) { routerHistory.push('/publish'); } }; diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 5d0ff8536..107a4e586 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -3176,7 +3176,6 @@ $ui-header-height: 55px; padding: 15px; text-decoration: none; overflow: hidden; - text-overflow: ellipsis; white-space: nowrap; &:hover, |