Adds Label editor#2884
Conversation
Still very broken
- moved some things around to be eventually used elsewhere - changed place holder text to be same as text input - fixed warpers
add line break, todo, and update renderLargeTextInput
mostly copied from dice and holder + gimic fix using a height adjustment
|
Maybe spell out Title and Header as not everyone will know what that means. And there is potential confusion because "normal" sounds like it might be the default, but it is not. Maybe call it "regular" text? |
|
Let me preface these comments with: I have not played around in the Properties code at all so I don't know what is a good idea and what is possible. And I don't know how far we want to take this. That being said here are some comments and food for thought:
|
|
"Other properties" currently shows properties that are defined on the widget but have no other UI. So you can at least see them. |
|
Another thing I just tested. If I have the nested object form of css, then changing color does nothing and changing style/font-size erases the other css. I don't know many people that would use nested object css and then use the Properties sidebar, but we should probably prevent it from being destructive to what is already there including if it is just the basic object form. This may be difficult to code. |
Add missing applyDeltaToDOM call in renderNumberInput to match renderColorInput behavior, ensuring UI updates in real-time during editing. AI
- Add renderOnDemandPlaceholderInput() method wrapping placeholder in renderObscureProperties pattern - Remove standalone color and font-size inputs from renderForLabel - Update mergePropertyFromCSS to auto-convert flat CSS to nested format when editing non-default CSS classes - Placeholder text only appears as on-demand button, styling applies via ' ::placeholder' pseudo-selector mostly AI

Updates the label properties editor UI
Before

After


PR-SERVER-BOT: You can play around with it here: https://test.virtualtabletop.io/PR-2884/pr-test (or any other room on that server)