- Notifications
You must be signed in to change notification settings - Fork 490
frontend: Add vertical snap positions for activities #4259
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
base: main
Are you sure you want to change the base?
Conversation
6d123b8 to 8005a7b Compare | At this point I think we should have a drop down (on hover) for all those positions instead of just laying them horizontally. WDYT? |
8005a7b to e43c04c Compare | @joaquimrocha |
| I had imagined using the icons instead of the full text for the drop down but I think it also works. @sniok , WDYT? |
| I think the icons + the text as tooltips works fine. Thanks for the changes. |
| Also, try to anchor the popover at the center horizontally, so it opens like: instead of (currently): |
4d620b5 to c636008 Compare
skoeva left a comment
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.
neat idea, LGTM
| Thank you 🙌 |
| I misunderstood "icons + text as tooltips" to mean using both icons and text together. Sorry about that! |
| @kahirokunn , I think I found a side effect of your PR at the task overview (click the lower right icon at the task bar when you have a task snapped to the bottom): I mean, it's maybe a quirky feature that it's shown at the bottom, but I think we should have them all at the same height. Also because if you have more windows snapped to the bottom in the overview than your screen holds horizontally, then it will not show beyond that first line of windows. See the 4 tasks opened but only 3 windows showing in the overview below: Another problem: The popover for selecting the snap modes should go away if we do not hover it or the trigger button, because right now, if you try to hit the minimize button, you almost always hover the snap button and then the popover stays on, requiring an extra click to hide it before we can hit the minimize button. |
There are a couple of issues that I have highlighted in my comments.
| [APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kahirokunn The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
c636008 to 93d5050 Compare …dal popup Signed-off-by: kahirokunn <okinakahiro@gmail.com>
93d5050 to a107a4d Compare | Thanks for the review 🙏 |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| I think it's a good idea to allow for more position for activities. I'm not sure about this iteration though. I think left/right/fullscreen are the most common options and with these changes it makes it harder to use them since they're now hidden under a menu. |
| Thank you for your thoughtful feedback! I really appreciate you taking the time to consider the UX implications. I'd like to share some context about why I believe this change is important. I've noticed that when activities are snapped left or right, they inevitably block UI elements of the currently opened page in Headlamp, and there's no way to avoid this overlap. Imagine this scenario: you're writing source code in VS Code, and Chrome always overlays on top of VS Code's interface. That's essentially what happens with the current left/right snap positions in Headlamp. If this were a split-screen approach where the screen area is shared (like traditional window tiling), I probably wouldn't have created this PR. However, since Headlamp uses an overlay design, I believe we need more positioning options beyond just left/right/top/bottom. Specifically, I think corner positions (top-left, top-right, bottom-left, bottom-right) would be valuable additions to give users more flexibility in avoiding overlapping critical UI elements. Regarding your concern about frequently-used positions being harder to access: I completely understand this is a valid UX concern. I'm open to exploring alternative UI approaches that keep the most common positions (left/right/fullscreen) easily accessible while accommodating additional positioning options. Would you be open to discussing potential UI solutions that could address both needs? I'm happy to iterate on the design to find the right balance. What do you think? |





Summary
This PR adds vertical snap positions for activities (e.g. Edit dialogs) so they can be docked to the top or bottom of the main area in addition to left/right/full/window.
Related Issue
N/A
Changes
split-top/split-bottomlocations to the activity layout system.Steps to Test
Screenshots
Notes for the Reviewer