[Glitch] Fix reply not opening compose page on certain screen sizes in web UI

Port 01980c975b to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko 2022-10-22 23:15:14 +02:00 committed by Claire
parent f3c3f1f244
commit 7ed4c4db9e
2 changed files with 1 additions and 4 deletions

View file

@ -85,10 +85,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');
}
};

View file

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