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

Avoid jumping left and right on focusing on/leaving current line #69

Closed
3 tasks done
shrekuu opened this issue Feb 20, 2024 · 2 comments
Closed
3 tasks done

Avoid jumping left and right on focusing on/leaving current line #69

shrekuu opened this issue Feb 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@shrekuu
Copy link

shrekuu commented Feb 20, 2024

Clear and concise description of the problem

I have code like this: <Icon icon="mdi:heart-outline" className="h-5 w-5" />

The icon name shows when I put the cursor on this line, disappears when I move cursor to other lines. The icon image disappears when the name fails to match one icon. The code jumps left and right.

Expected result

I think it would be great of the code does not jump left and right, at least not that much distance when we focus on or leave this line.

Suggested solution

When this plugin is enabled, just keep some space(may be some sign/graph to indicate that no icon matches the icon name) before the icon name literal to show the icon. Or at least always show the icon name, so the line does not shift left and right that much distance when we focus on or leave this line. Maybe adding something we can configure in the settings? Sorry I am not capable of creating a PR.

image

Thanks Anthony Fu. ❤️

Validations

@shrekuu shrekuu added the enhancement New feature or request label Feb 20, 2024
@s3xysteak
Copy link
Contributor

Disable the option iconify.inplace may be helpful.

@shrekuu
Copy link
Author

shrekuu commented Aug 26, 2024

@s3xysteak Cool! Thanks. I never knew this feature. The code is tamed.

image

@shrekuu shrekuu closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants