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

Add support for draggable banners #2359

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

varjolintu
Copy link
Member

@varjolintu varjolintu commented Oct 6, 2024

Adds a grab cursor when hovering on Credential or Custom Login Field banner, and allows user to move it to the bottom, or back to the top. If the credential or group selection dialog is open while dragging, its position is changed as well.

Known issues:
The dragging animation is not visible if dragging is canceled, or dragged to the same position where the banner already is. I couldn't find a reliable way to do that. The best solution was to disable the animation for good.

Banner on top (default):
Screenshot 2024-10-06 at 22 19 11

Banner on bottom (after dragging):
Screenshot 2024-10-06 at 22 19 16

Fixes #2327.

@varjolintu varjolintu added this to the 1.9.4 milestone Oct 6, 2024
@varjolintu varjolintu requested a review from droidmonkey October 6, 2024 19:17
@droidmonkey
Copy link
Member

droidmonkey commented Oct 6, 2024

This works well but the banner showed up on the top of the page immediately after a refresh (ie, the banner being dragged to the bottom is not remembered)

@varjolintu
Copy link
Member Author

This works well but the banner showed up on the top of the page immediately after a refresh (ie, the banner being dragged to the bottom is not remembered)

The original idea was that this dragging is just temporary and done when it's needed. Of course we could just remember the state or add a separate option for remembering it. What do you think?

@droidmonkey
Copy link
Member

Keep the drag, its a neat shortcut. We should remember the "last used state" though.

@varjolintu
Copy link
Member Author

Added a setting so the position will be remembered even after browser restart.

Copy link
Member

@droidmonkey droidmonkey left a comment

Choose a reason for hiding this comment

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

Works great, I actually prefer the banner on the bottom now!

@varjolintu varjolintu merged commit d517b12 into develop Oct 8, 2024
@varjolintu varjolintu deleted the feature/make_banners_draggable branch October 8, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow moving Credential Banner somewhere else (to the bottom?)
2 participants