JohanFalt / Foundry_WoD20

World of Darkness 20th ed for Foundry VTT
GNU General Public License v3.0
26 stars 22 forks source link

[Request] Resizable Text Areas #837

Open BokuNC opened 2 months ago

BokuNC commented 2 months ago

Is your feature request related to a problem? Please describe. Currently, the text areas arent resizable or sensitive to the amount of content it holds, it creates some very narrow windows to edit larger blocks of informations for items, backgrounds and other things.

Describe the solution you'd like It would be very helpful for preparation, reading and clarity if the text boxes were resizable.

Kad-Caiel commented 2 months ago

I believe this has been discussed in the past, but yes, it would be great. For example, manage a table in System area to create a simple Number of successes/Effect paragraph is a bit annoying, since you have to do it only with only a few lines in height.

BokuNC commented 2 months ago

Exacty, even copying and pasting text into them is bothersome, i don't know if its something CSS only or if its HTML based, i may look into it deeply sometime.

BokuNC commented 2 months ago

Yeah, its HTML based. As it is, for the editor side, a "resize: vertical;" in front of the "height: 150px;" is enough to let you, at least, drag its size up to where you find it comfortable. When closed, we could use some automation/content-aware, so it just envelops whatever is there.

I'm not even trying to change how the sheet work, just the item sheets.

I may try some bigger changes and, if it works, do a pull request later.

BokuNC commented 2 months ago

Yeah, you can force a CSS rule to ignore the html defined ones. The solution i found is adding through CustomCSS: .editor { resize: vertical; } .tox { height: 100% !important; }

For now, its enough to enlarge the boxes while editing.

For the front side of things...

.wod .textarea{ height: auto !important; }

I think it could work on editor.css