Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files): fix list gap at bottom #47500

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

elzody
Copy link
Contributor

@elzody elzody commented Aug 26, 2024

Summary

Due to a dynamic CSS property in the VirtualList.vue component, there was extra space after the final file in the list whenever the rich workspace is active. This PR removes the naughty part of the height calculation as specified in the issue

Screenshots

Before

image

After

image

Checklist

@elzody elzody added bug 3. to review Waiting for reviews labels Aug 26, 2024
@elzody elzody requested review from susnux and juliusknorr August 26, 2024 20:09
@elzody elzody self-assigned this Aug 26, 2024
@elzody elzody requested a review from skjnldsv as a code owner August 26, 2024 20:09
@elzody
Copy link
Contributor Author

elzody commented Aug 26, 2024

/backport to stable30

@elzody
Copy link
Contributor Author

elzody commented Aug 26, 2024

/backport to stable29

@elzody
Copy link
Contributor Author

elzody commented Aug 26, 2024

/backport to stable28

@skjnldsv
Copy link
Member

skjnldsv commented Aug 27, 2024

I guess the calculation of the height changed at some point and we forgot to remove the beforeHeight. 🤔

@elzody have you tested with a few headers ? Like recommendations and text with a readme ?

EDIT: just did, it's perfect! 👍

@skjnldsv
Copy link
Member

/compile amend-rebase /

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 27, 2024
@skjnldsv skjnldsv enabled auto-merge August 27, 2024 08:43
Signed-off-by: Elizabeth Danzberger <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix/file-list-footer-gap branch from 200a64c to 99221f2 Compare August 27, 2024 08:54
@susnux
Copy link
Contributor

susnux commented Aug 27, 2024

I guess the calculation of the height changed at some point and we forgot to remove the beforeHeight. 🤔

Last time I touched that logic and copy-pasted but shame on me I did not tested with recommended-files or text installed 🙈

@susnux
Copy link
Contributor

susnux commented Aug 27, 2024

@skjnldsv

EDIT: just did, it's perfect! 👍

Did you also test with a fileid in the URL? So that the scrolling still works? Because the scroll position still takes beforeHeight into account.

@elzody
Copy link
Contributor Author

elzody commented Aug 27, 2024

@susnux I just gave it a whirl, it seems like it still auto-scrolls so the selected file is still visible.

@skjnldsv skjnldsv merged commit 9754f4f into master Aug 27, 2024
113 checks passed
@skjnldsv skjnldsv deleted the fix/file-list-footer-gap branch August 27, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File list footer is to far away from the list
4 participants