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

Fix Terminal Icon Picker alignment and placement #241359

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mrunsung7
Copy link

This PR addresses #211394, where the Terminal Icon Picker was not positioned correctly, leading to inconsistent UI behavior. The fix improves the alignment and ensures proper placement using refined layout calculations.

Fixes & Improvements:
✅ Adjusted hover positioning logic to ensure correct placement.
✅ Added offsetX and offsetY values for better positioning.
✅ Improved layout calculations to handle different screen sizes and resolutions.
✅ Ensured consistency across various UI states.

How We Fixed It:
Identified the Issue: The icon picker was misaligned due to incorrect hover positioning.
Updated the Code: Modified the hover widget positioning in terminalIconPicker.ts.
Resolved Type Errors: Fixed TypeScript errors by ensuring compatibility with IHoverOptions.
Tested the Fix: Verified placement in multiple scenarios within the Codespace environment.
Committed & Pushed Changes: Created a feature branch (fix-terminal-icon-picker), committed the fix, and pushed it to the repository.

How to Test:
1.Pull the latest changes from the branch:
git checkout fix-terminal-icon-picker
git pull origin fix-terminal-icon-picker

2.Build and run the project:
yarn install
yarn watch

3.Open the Terminal Icon Picker and verify its correct positioning.

4.Ensure the hover behavior is aligned properly across different window sizes.

Fixes #211394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DECSCUSR 0 should reset to the user-defined cursorStyle
2 participants