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

Plot preview cut off when using certain themes #128

Open
2 tasks done
KosmosisDire opened this issue May 16, 2023 · 1 comment
Open
2 tasks done

Plot preview cut off when using certain themes #128

KosmosisDire opened this issue May 16, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KosmosisDire
Copy link

What happened?

When using some themes (in my case the Minimal theme) the plot preview is cut off because the modal is too small (see screenshot)

image

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

You could fix this by manually setting a style on the modal element to make sure it fits the content rather than being a fixed width.

width: min-content; is better than width: auto; or width: fit-content; in my opinion even though it squishes some of the text. But you could probably fix that with a bit more work (like setting a min width on the text elements for something like that)

you can see how much better it fits when this is set:
image

Additional info

No response

@KosmosisDire KosmosisDire added the bug Something isn't working label May 16, 2023
@antfightclub
Copy link

I wrote a very short and sweet CSS snippet for anyone dealing with the same issue - for me it's a problem on the default theme too!
This is the entire snippet, and should fix the width from being cut off every time you open the command!
div.modal, element.style { width: min-content; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants