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: add tooltip positions for status bar menu buttons & change menu width #20

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

Conversation

re4mat
Copy link

@re4mat re4mat commented Apr 24, 2024

Tooltips for the status bar icon and menu had no explicit "data-tooltip-position" attribute set, causing them all to be auto-positioned as "bottom" when invoked.

This change adds setAttributes({"data-tooltip-position":"top"}) to the status bar button and all the menu buttons.

 

Screenshots from before the change

Note

before - status bar
before - Reload snippets
before - Open snippets folder
before - Create new snippet
before - Open snippet

 

Screenshots from after the change

Note

after - status bar
after - Reload snippets
after - Open snippets folder
after - Create new snippet
after - Open snippet

Change menu width to `fit-content` to stop long snippet filenames from being truncated. This is especially helpful when using namespaced snippets where the scope or function is at the end of the filename.

Fixes chetachiezikeuzor#11
@re4mat re4mat changed the title fix: added tooltip positions for status bar menu buttons fix: add tooltip positions for status bar menu buttons & change menu width Apr 24, 2024
@re4mat
Copy link
Author

re4mat commented Apr 24, 2024

Change menu width to fit-content to stop long snippet filenames from being truncated. The fit-content keyword dynamically adjusts the width of the menu to accommodate the menu's content, ensuring that the full filename is always visible. This is especially helpful when using namespaced snippets where the scope or function is at the end of the filename.

Fixes: #11

 

Screenshot from before the change

Note

before - snippet name

 

Screenshot from after the change

Note

after - snippet name

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.

1 participant