-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Refactor design of autocomplete dropdown #2119
base: develop
Are you sure you want to change the base?
Refactor design of autocomplete dropdown #2119
Conversation
Wow this looks awesome! |
I'd assume that many users would want to keep the compact view intact, so maybe this could be an optional feature, but enabled by default? |
You need to add a new translation string to https://github.com/keepassxreboot/keepassxc-browser/blob/develop/keepassxc-browser/_locales/en/messages.json. |
Thanks, done! |
@varjolintu Good find! I haven't considered too narrow input fields. I'll work on it later this day. |
Personally I think the original version was better. Stacking more text vertically makes the elements much bigger. |
In what terms? Without the stacking and/or also without the additional padding? How about th reduced font size? |
With the group text on the upper-right. But I think this could also work with stacking. And it's probably much easier to implement. |
I personally think there is a bit too much top/bottom padding between items, but otherwise I'm sold |
I like it, but perhaps we can make the compact variant a middle ground between the new spacious and the old crammed version. |
@phoerious Thanks for your feedback! What do you mean? Do you have an idea on how this might look like? |
Instead of providing a basically unformatted list with names in brackets, try to fit the new layout into a single line with a little but not much more spacing than before. |
I preferred the "Applications" and "Work" labels on the right hand side. The label could be stacked if the width is too narrow? |
Ah, I totally misread phoerious comment. I'll update this PR. I also prefer the group on the right side on the same line with the title. I also used flexbox for this suggestion. I'm not sure why I removed it, as visible in my recent screenshot: |
@tinyoverflow You also need to add |
I would make the compact mode basically the same as the default mode, but remove the group name, move the username to the right, and reduce font size and padding a little. The brackets that we have right now look awful imho. Way too messy and without any visual hierarchy. |
With this improvement to the list view I think this option might be obsolete? Or maybe we default to a more compact view if the group is not displayed. |
I think the option still has it uses even with the compact view. |
Hello,
with this PR, I'd like to suggest a refactor for the autocomplete dropdown. My goal was to make it look a little bit more polished and modern, like the dropdowns in Bitwarden and 1Password.
It shows all informations in a more organized manner instead of just crammed into a single line, which might become too long very easily. In addition to that, it sets some default font styling to try to make it consistent across different websites.
What do you think about this?
Comparison (Before and After)
Before
After
Credits
The drop shadow was borrowed from TailwindCSS.