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 for 40872 #40873

Merged
merged 2 commits into from Jul 31, 2023
Merged

Fix for 40872 #40873

merged 2 commits into from Jul 31, 2023

Conversation

steelcuts
Copy link
Contributor

Changed the share dropdown. It will expand to the page bottom now if there are more entries.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • Local instance
  • presales.owncloud.com

Screenshots (if appropriate):

Bildschirm­foto 2023-07-11 um 16 39 19 Bildschirm­foto 2023-07-11 um 16 39 01

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

Changed the share dropdown. It will expand to the page bottom now if there are more entries.
@update-docs
Copy link

update-docs bot commented Jul 11, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@CLAassistant
Copy link

CLAassistant commented Jul 11, 2023

CLA assistant check
All committers have signed the CLA.

@hurradieweltgehtunter
Copy link
Contributor

Thank you for your work and the PR! One question, though: what happens if the dropdowns' height exceeds the screen height to the bottom?
I haven't tested it, but it looks like, that the list will exceed the screen height if it's long enough and some elements will be hidden. Have you tested that?

@phil-davis
Copy link
Contributor

@steelcuts please click the button to "sign" the CLA

@steelcuts
Copy link
Contributor Author

What happens if the dropdowns' height exceeds the screen height to the bottom?

Thanks and good question:
You can see in the second screenshot that it already has reached its maximum height, there is a scrollbar to the right of it.
The combination of y-overflow (scroll if it can't expand further) and bottom margin ( always leave 15px space to the bottom ) let the dropdown behave this way.

please click the button to "sign" the CLA

Thanks for letting me know

@hurradieweltgehtunter
Copy link
Contributor

hurradieweltgehtunter commented Jul 12, 2023

Please test the following:

  • Have the list as long as in your second screenshot
  • Reduce your browsers window height so the lists bottom is lower than the window bottom, for example move the window bottom up until the bottom is at "admin-matthias"

I'm pretty sure that the user list will be cut off.
I hope the explanation is understandable. it's bit tricky since I cannot test it locally rn :)

@steelcuts
Copy link
Contributor Author

I just retested and it didn't work at all. I didn't clear my cache and still had following css loaded:

max-height: -moz-available; 
max-height: -webkit-fill-available; 
max-height: fill-available;

I think that's what you where trying to say? :D

Now it behaves like i had intended:
Bildschirm­foto 2023-07-12 um 12 15 56
Bildschirm­foto 2023-07-12 um 12 16 13

@ChrisEdS
Copy link
Contributor

ChrisEdS commented Jul 12, 2023

Please only use common resolutions. Seems like this resolution is way to small - I see other misbehaviour here like

image

and

image

actually I think this is another bug! Should the Archivierte Dateien part be in the section of Gelöschte Dateien and Papierkorb?

@sonarcloud
Copy link

sonarcloud bot commented Jul 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@steelcuts
Copy link
Contributor Author

steelcuts commented Jul 12, 2023

You can test it here:
https://branding-aalvarez.owncloud.works/
user: demo_user
password: demo_password

Just search for the username "test"

@pako81
Copy link
Contributor

pako81 commented Jul 31, 2023

What is the status here? @ChrisEdS is this needed for the 10.13 release?

@ChrisEdS
Copy link
Contributor

I would love to have it in the release. @tbsbdr can you have a look?
#40873 (comment)

@steelcuts steelcuts merged commit b149908 into master Jul 31, 2023
3 checks passed
@steelcuts steelcuts deleted the fix-for-issue-#40872 branch August 1, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add max-height to sharing dialog
6 participants