Skip to content

Conversation

@JL102
Copy link
Contributor

@JL102 JL102 commented Apr 28, 2023

NOTE: I didn't include the compiled apps.css, server.css, etc. because I'm not sure what the procedure for those autogenerated files are. I figured it's easier for a maintainer to merge the PR then re-generate the files, rather than deal with a potential merge conflict

Summary

I find the fact that Material Design 3 allows for scrollbars to be hidden behind rounded corners incredibly offensive from a design standpoint. I checked the design guidelines and I couldn't find any explicit rules stating that they should be this way. I believe that it is much more aesthetically pleasing to stop the scrollbar before it starts being rounded. This code only modifies the scrollbar in the main app content, since that's the only container I could find that had a scrollbar hidden behind a rounded corner.

Before:

mstsc_2023-04-27_22-29-01

After:
mstsc_2023-04-27_22-25-44

Checklist

* I didn't include the compiled apps.css, server.css, etc. because I'm
not sure what the procedure for those autogenerated files are *

Signed-off-by: JL102 <jordanlees@mailbox.org>
@solracsf solracsf added this to the Nextcloud 27 milestone Apr 28, 2023
@solracsf solracsf added design Design, UI, UX, etc. 3. to review Waiting for reviews ux labels Apr 28, 2023
@provokateurin
Copy link
Member

@JL102 you need to add the changes to the autogenerated files to this PR. The CI won't go green unless you do it.

@szaimen szaimen requested review from a team, Pytal, artonge, juliusknorr and szaimen and removed request for a team April 28, 2023 15:41
@JL102
Copy link
Contributor Author

JL102 commented Apr 28, 2023

@JL102 you need to add the changes to the autogenerated files to this PR. The CI won't go green unless you do it.

Understood. Fixing

Signed-off-by: JL102 <jordanlees@mailbox.org>
@szaimen szaimen requested review from Jerome-Herbinet, jancborchardt and nimishavijay and removed request for szaimen April 29, 2023 10:31
Copy link
Member

@Jerome-Herbinet Jerome-Herbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea ! ... but sadly, this CSS property seams to be not supported by FF.
Please check : https://developer.mozilla.org/fr/docs/Web/CSS/::-webkit-scrollbar
I let other reviewers verify this information.
If confirmed, it might be necessary to imagine a workaround or a different way to get the same result.

@JL102
Copy link
Contributor Author

JL102 commented Apr 30, 2023

Nice idea ! ... but sadly, this CSS property seams to be not supported by FF. Please check : https://developer.mozilla.org/fr/docs/Web/CSS/::-webkit-scrollbar I let other reviewers verify this information. If confirmed, it might be necessary to imagine a workaround or a different way to get the same result.

Firefox has been doing scrollbars differently from Webkit/Blink-based browsers for a long time. I don't believe it's possible to do the same trick in Firefox, because the only three W3c-standard scrollbar related attributes I can see are scrollbar-color, scrollbar-gutter, and scrollbar-width; none of which can control the buttons.

@Jerome-Herbinet Jerome-Herbinet self-requested a review May 2, 2023 11:43
@kesselb kesselb merged commit ac56be1 into nextcloud:master May 2, 2023
@welcome
Copy link

welcome bot commented May 2, 2023

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@JL102 JL102 deleted the scrollbars branch May 4, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews design Design, UI, UX, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants