-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Revamp profile visibility section #29482
Conversation
027adfd
to
faff972
Compare
faff972
to
1d9d1a9
Compare
This comment has been minimized.
This comment has been minimized.
1d9d1a9
to
88a77b3
Compare
Psalm errors seem unrelated 🤔 |
If you can reproduce this error locally, could you update the psalm baseline? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks so much better. Great work!
Let's do that in another PR |
apps/settings/css/settings.scss
Outdated
html { | ||
scroll-behavior: smooth; | ||
|
||
@media screen and (prefers-reduced-motion: reduce) { | ||
scroll-behavior: auto; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems super specific and new, but not related to this PR 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to make it so that clicking the "Edit your Profile visibility" anchor link scrolls smoothly to the new section instead of jumping instantly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that will impact everything else too then? Maybe just scope that to the visibility styling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already attempted to set this property on the scoped container which contains the elements, but in testing it seemed that setting on html
was the only way it would work. As a js solution would be suboptimal I opted to place this in the styles of the component instead so that it would ony apply on the settings page with the component
server/apps/settings/src/components/PersonalInfo/ProfileSection/EditProfileAnchorLink.vue
Lines 62 to 70 in 19c62d0
<style lang="scss"> | |
html { | |
scroll-behavior: smooth; | |
@media screen and (prefers-reduced-motion: reduce) { | |
scroll-behavior: auto; | |
} | |
} | |
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed tricky as the scroll-behaviour
has to be set on the scrolling element, and in this case, it is html
.
You could wrap the personal settings into a <div>
, limit its height to 100vh - $hearder-height
and set the scroll-behaviour
on it. But I didn't find how to include the development notice at the bottom.
In any case, setting scroll-behaviour
globally could be a good change. But might need some discussion...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, its merged already 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, setting
scroll-behaviour
globally could be a good change. But might need some discussion...
Yes, would have to see if any current functionality depends on non-smooth scroll-behavior
, though it'd most likely be purely cosmetic 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments, otherwise good! 🚀
88a77b3
to
27fce8e
Compare
Pinging @https://github.com/nextcloud/server/blob/master/.github/workflows/update-psalm-baseline.yml :) |
- Minor refactor Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
- Provide metadata - Dynamic displayId - Add appId - Filter out unused parameter config properties from the existing profile config Signed-off-by: Christopher Ng <chrng8@gmail.com>
27fce8e
to
8992eb2
Compare
/compile amend / |
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
8992eb2
to
19c62d0
Compare
Revamp profile visibility settings by grouping dropdowns together into one section instead of one dropdown under every input field and make necessary improvements to the backend i.e. provide
appId
for sorting and dynamicdisplayId
.Contributes to #28139