Skip to content

Commit

Permalink
html5: fix persistent matrix chat
Browse files Browse the repository at this point in the history
using visibility: hidden still causes the element to do layout, which
squeeze other elements (like timer, polls, etc).  Fix this by changing
to display: none which doesn't do any layout at all.

Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
James Bottomley authored and rppt committed Sep 3, 2024
1 parent c4c0190 commit 5391521
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Matrix = ({
<Styled.Matrix
data-test="matrix"
isChrome={isChrome}
style={{ visibility: isVisible ? 'visible' : 'hidden', }}
style={ isVisible ? {} : {display: 'none'}}
>
<Header
leftButtonProps={{
Expand Down

0 comments on commit 5391521

Please sign in to comment.