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

Configurable Preview Size #103

Open
AdamRaichu opened this issue Apr 3, 2024 · 3 comments
Open

Configurable Preview Size #103

AdamRaichu opened this issue Apr 3, 2024 · 3 comments

Comments

@AdamRaichu
Copy link
Owner

          Similar for me

What I mostly use this plugin for is:
go into a zip file , copy a piece of code using "preview"

I'd like to have a lot bigger preview
I'd like to have a button near "get preview", "open temporary" in a new tab
Thanks

Originally posted by @giac-fab in #101 (comment)

@AdamRaichu
Copy link
Owner Author

@cs-shadowbq
Copy link

Would be nice to add some more CSS markup to

var t = document.createElement("textarea");

Simple additions like adding class names, then bake in additional the CSS in /media/ZipEditor.css

t.className = "NewStyledTextarea";

I do like the

resize: vertical;

Would be nice to add real VSCode extension settings block for custom markup.

@AdamRaichu
Copy link
Owner Author

Would be nice to add some more CSS markup to

var t = document.createElement("textarea");

Simple additions like adding class names, then bake in additional the CSS in /media/ZipEditor.css

t.className = "NewStyledTextarea";

I do like the

resize: vertical;

Would be nice to add real VSCode extension settings block for custom markup.

textarea {
width: 100%;
min-height: 150px;
background-size: contain;
background-repeat: no-repeat;
resize: vertical;
}

The textarea is already set to resize: vertical, but I do think that custom CSS would probably be the easiest way to implement this. I'll take a look.

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

No branches or pull requests

2 participants