Fix taking sidebar position in fullscreen mode#1711
Closed
Conversation
5730cc6 to
80ca372
Compare
Contributor
Author
|
Rebased onto master + compiled in prod mode |
80ca372 to
c002a26
Compare
5 tasks
Member
|
Just noticed this existed after working on an alternative approach at nextcloud/server#39378, but it is basically alternative 1 you considered. Would appreciate input on that one as it seems to have the same effect without the mentioned drawback from above. |
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
c002a26 to
f4d96e1
Compare
Contributor
Author
|
PR is updated after nextcloud/server#39378 |
Contributor
Author
|
@juliushaertl @skjnldsv @artonge |
skjnldsv
approved these changes
Aug 9, 2023
juliusknorr
approved these changes
Aug 17, 2023
artonge
approved these changes
Aug 17, 2023
Member
|
Please don't forget to set the milestone when opening a PR 😃 |
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
This was referenced Aug 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐞 Resolves
Steps to reproduce:
🖼️ Changes
Take the sidebar position in
beforeOpenBefore
master.mp4
After
FIX.mp4
Details
Old descriptionA bug
How Viewer react on sidebar opening now in Files:
Exactly the same happens when Viewer is opened having Sidebar already opened.
It wasn't a problem before #1640 because incorrect width early was correct for fullscreen mode.
Expected behavior
No gap
Solution in this PR
Retake Sidebar's position when file opening (including transition animation) is finished.
Drawbacks
Because of sub-loading and 100ms transition on width, for a short time there is a gap anyway and animation if it's disappearing...
gap.mp4
Alternative solutions
Alternative solutions could be:
ResizeObserver