-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add users and apps inner search and add HeaderMenu cancel #22800
Conversation
d11db19
to
f3f2d1c
Compare
/compile amend / |
f3f2d1c
to
58e16be
Compare
@skjnldsv I guess this fixes the issue discussed in #22526 (comment), right? |
It would be nice if it could be somehow indicated when a search is still "active", i.e. the search string is not empty. Maybe with a red dot or at least the opacity of the search icon could be set to 1. |
Because it is currently not obvious when a search/filter is active and users might be confused why certain content is not shown. |
Good point … this is unfortunately where the drawback of showing the search field only in the dropdown comes in. The way we did it before with the search field being directly in the header, this was obvious.
|
The issue we had was on small screens. But I'm fine if you prefer than. Though I would be also fine just adding an indicator like the white triangle under? or a red dot like notifications? 🤔 😀
I'm afraid it could conflict with other elements on page, especially mobile
You asked not to, so we're good there, no clearing on close :) |
So the search would initially be an icon, but as soon as you click or focus, it would expand (like before). On mobile, it’s fine to do it like on Android: Search can take the full heading width (at least on smartphone sizes) and go back to icon-only when you clear the search. (On tablet or intermediate sizes, it’s fine if search takes as much space as it needs away from the list of app icons.) An indicator on the search icon is something that can easily be missed and also something I haven’t seen elsewhere before. |
@raimund-schluessler this will wait for21, Jan have a bit more in-depth requests for this that will create too much changes for 20 :) |
58e16be
to
a5c185f
Compare
@skjnldsv What exactly will have to wait? The whole PR or indicating that a search is active? |
And adding a reset button for Firefox is not controversial as well, right? |
This will be implemented in a followup for 20 |
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.
Tested and works 👍
This comment has been minimized.
This comment has been minimized.
a5c185f
to
f41e8fb
Compare
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
f41e8fb
to
58b19ef
Compare
This was requested by @jancborchardt and should be the default behaviour for other apps.
Alongside I added a
cancel
event to the HeaderMenu component that could be use by other apps once I moved it to https://github.com/nextcloud/nextcloud-vue