Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix scroll behaviour in space panel #8109

Closed
wants to merge 4 commits into from
Closed

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Mar 22, 2022

Fixes element-hq/element-web#21467 (but we should revisit the fix)
Regressed by #8066


Annoyingly this increases complexity of an already-complex LoggedInView, however the flex layout in the left panel doesn't allow for us to easily add a rowspan-like element such as the live location share warning.

To circumvent this for purposes of release, we'll just chuck the live location sharing warning functionality into LoggedInView, which can manage a set of CSS classes to mimic a rowspan across the top of the room list.

Trying to make the left panel a nested flexbox works visually, but breaks all the scroll behaviour for the room list and space panel. This is likely because the flexbox layout of the left panel is already trying to do too many tricks to get the layout to work just right, so adding a fifteenth trick by nesting the flexboxes just doesn't work. It's unclear which trick specifically is breaking the scroll behaviour.

It's absolutely awful, but it works.


image
image


Here's what your changelog entry will look like:

🐛 Bug Fixes

Preview: https://pr8109--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

Annoyingly this increases complexity of an already-complex LoggedInView, however the flex layout in the left panel doesn't allow for us to easily add a rowspan-like element such as the live location share warning. 

To circumvent this for purposes of release, we'll just chuck the live location sharing warning functionality into LoggedInView, which can manage a set of CSS classes to mimic a rowspan across the top of the room list.

Trying to make the left panel a nested flexbox works visually, but breaks all the scroll behaviour for the room list and space panel. This is likely because the flexbox layout of the left panel is already trying to do too many tricks to get the layout to work just right, so adding a fifteenth trick by nesting the flexboxes just doesn't work. It's unclear which trick specifically is breaking the scroll behaviour.

It's absolutely awful, but it works.
@turt2live turt2live added X-Release-Blocker This affects the current release cycle and must be solved for a release to happen T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems labels Mar 22, 2022
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #8109 (946e80c) into develop (709e6e7) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #8109      +/-   ##
===========================================
- Coverage    27.19%   27.17%   -0.02%     
===========================================
  Files          872      871       -1     
  Lines        52207    52208       +1     
  Branches     13231    13233       +2     
===========================================
- Hits         14197    14189       -8     
- Misses       38010    38019       +9     
Impacted Files Coverage Δ
src/components/structures/LoggedInView.tsx 0.67% <0.00%> (-0.03%) ⬇️

@turt2live
Copy link
Member Author

Closing in favour of #8111 which is a much more reasonable fix.

@turt2live turt2live closed this Mar 22, 2022
@turt2live turt2live deleted the travis/fix-space-panel branch March 22, 2022 05:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems X-Release-Blocker This affects the current release cycle and must be solved for a release to happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Spaces bar cannot be scrolled anymore
1 participant