Browse Source

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
closed-social-glitch-2
Eugen Rochko 2 years ago
committed by GitHub
parent
commit
56efa8d22f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions
  1. +1
    -3
      app/javascript/mastodon/actions/compose.js
  2. +0
    -1
      app/javascript/styles/mastodon/components.scss

+ 1
- 3
app/javascript/mastodon/actions/compose.js View File

@ -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');
}
};

+ 0
- 1
app/javascript/styles/mastodon/components.scss View File

@ -3176,7 +3176,6 @@ $ui-header-height: 55px;
padding: 15px;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:hover,

Loading…
Cancel
Save