RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
791 stars 258 forks source link

[Bug]: Input buttons in chat have fixed width that cannot be changed #3699

Open Lector opened 2 years ago

Lector commented 2 years ago

Describe the Bug

Since v1.12.0 i mentioned that submit-buttons, postet to the chat apply the theme, even if 'apply theme to chat' in themes is toggled off. This not only results into applying the colors of the theme to the buttons, they also seem to have a minimal width, which breaks my layout a little bit. When using buttons with no content they shrink to a minimal hight of <~10px while their width is always >~50px.

In my actual case the UI looks like this:

Buttons bug

Setting the width of the button manually does not change anything!

To Reproduce

Execute this:

[h: buttons = strformat("<input type='submit' value='' style='width: 5px;'/>")]
[h: broadcast(buttons)]

This looks like this using dark arc theme:

Button Bug

Expected Behaviour

With 'apply theme to chat' UNchecked, I would like the buttons in the chat to behave like before. With the option CHECKED, I still dont want my buttons to waste more space than nessecary. This is an old screenshot from Aug 2021 of my framework with the buttons wasting a bit less space:

FK

Screenshots

No response

MapTool Info

1.12.1

Desktop

Windows 10

Additional Context

No response

Lector commented 1 year ago

I mentioned that this unwanted behaviour also applies to v1.13.0-beta.1

Lector commented 11 months ago

I have tested this in v1.14.2. This is still an issue.