Middle Header: Some buttons are inactive in a new application window if the right column is open (#3382)
This commit is contained in:
parent
dc0999702c
commit
e1eb7a0315
@ -454,12 +454,12 @@ const Main: FC<OwnProps & StateProps> = ({
|
|||||||
const isFullscreen = useFullscreenStatus();
|
const isFullscreen = useFullscreenStatus();
|
||||||
|
|
||||||
// Handle opening right column
|
// Handle opening right column
|
||||||
useSyncEffect(([prevIsRightColumnOpen]) => {
|
useSyncEffect(([prevIsMiddleColumnOpen, prevIsRightColumnOpen]) => {
|
||||||
if (prevIsRightColumnOpen === undefined || isRightColumnOpen === prevIsRightColumnOpen) {
|
if (prevIsRightColumnOpen === undefined || isRightColumnOpen === prevIsRightColumnOpen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noRightColumnAnimation) {
|
if (!prevIsMiddleColumnOpen || noRightColumnAnimation) {
|
||||||
setIsNarrowMessageList(isRightColumnOpen);
|
setIsNarrowMessageList(isRightColumnOpen);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -474,7 +474,7 @@ const Main: FC<OwnProps & StateProps> = ({
|
|||||||
forceUpdate();
|
forceUpdate();
|
||||||
setIsNarrowMessageList(isRightColumnOpen);
|
setIsNarrowMessageList(isRightColumnOpen);
|
||||||
});
|
});
|
||||||
}, [isRightColumnOpen, noRightColumnAnimation, forceUpdate]);
|
}, [isMiddleColumnOpen, isRightColumnOpen, noRightColumnAnimation, forceUpdate]);
|
||||||
|
|
||||||
const className = buildClassName(
|
const className = buildClassName(
|
||||||
leftColumnTransition.hasShownClass && 'left-column-shown',
|
leftColumnTransition.hasShownClass && 'left-column-shown',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user