This is my first post so I don't know where I should ask this. I assume it goes here. I skimmed through the rules and as far as I know I am not doing anything illegal. I did a surface-level search to see if this was posted before and didn't see anything.
I was working on a subclass that comes with a custom creature (much like the artificer's subclasses) and I wanted to have an inline 5.5e stat block of my creature in the subclass's description (instead of the simple unordered list with headings).
However there was no insert stat block or create stat block option. I didn't mind as there is a source code option and I have already borrowed D&D styling before for a homebrew monster's legendary action description (class="legendary-actions"). So I thought that I could borrow the stat block style and for the most part it worked. In the editor, it looked identical. However, when I hit save and went to view my homebrew subclass's new description, the colors were off, and the table cells leaked into the actions' description. I was slightly annoyed that I put so much work into porting the stat block style to the editor page, when the display page has yet another context and therefore half the styles don't work anyway. So I forced background colors and it fixed the issue.
There was, however, one more issue: the table cells. They still leaked into the description. I found its root cause to be this line:
.details-container-content-description-text table tbody tr td {
min-width: 100px; // <-- right here
padding: 20px;
background: 0;
max-width: 400px
}
The stat block style's cells are about 40-50 px, so they get stretched out because of this. This pushes the second table (that is right next to the first in the 5.5e stat blocks) into the actions' description.
I tried to specify my own min-width: 0; but the viewer apparently strips it (not the editor; it, again, displays correctly in the editor). The viewer also strips display, overflow-x, width, max-width, <style>, ... but I'm sure I don't need to tell you as you should know your own codebase. This sanitizer removes any option I have to solve the issue myself.
So I would like you to remove the rule entirely, or maybereduce it to 40px if you don't want other tables to collapse. That would be the easiest solution. Alternatively, add an option in the editor to insert a 5.5e stat block (that is portable across pages. Maybe the official stat blocks could then use those styles as well and the website would become a bit more consistent...) and let the user fill in the details (I'm not talking about adding support for custom arbitrary stat blocks to mechanically work with your VTT, just that they render correctly). You can also add this to any editor once you have implemented it once. So it would become usable in other homebrew contexts (like magic items, backgrounds, species, ...).
By implementing any of these, users can actually insert a 5.5e stat block into subclasses without having to fight the website to the death. Thanks in advance! (if there is already a way to insert stat blocks then I'm just blind)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This is my first post so I don't know where I should ask this. I assume it goes here. I skimmed through the rules and as far as I know I am not doing anything illegal. I did a surface-level search to see if this was posted before and didn't see anything.
I was working on a subclass that comes with a custom creature (much like the artificer's subclasses) and I wanted to have an inline 5.5e stat block of my creature in the subclass's description (instead of the simple unordered list with headings).
However there was no insert stat block or create stat block option. I didn't mind as there is a source code option and I have already borrowed D&D styling before for a homebrew monster's legendary action description (
class="legendary-actions"). So I thought that I could borrow the stat block style and for the most part it worked. In the editor, it looked identical. However, when I hit save and went to view my homebrew subclass's new description, the colors were off, and the table cells leaked into the actions' description. I was slightly annoyed that I put so much work into porting the stat block style to the editor page, when the display page has yet another context and therefore half the styles don't work anyway. So I forced background colors and it fixed the issue.There was, however, one more issue: the table cells. They still leaked into the description. I found its root cause to be this line:
.details-container-content-description-text table tbody tr td { min-width: 100px; // <-- right here padding: 20px; background: 0; max-width: 400px }The stat block style's cells are about 40-50 px, so they get stretched out because of this. This pushes the second table (that is right next to the first in the 5.5e stat blocks) into the actions' description.
I tried to specify my own
min-width: 0;but the viewer apparently strips it (not the editor; it, again, displays correctly in the editor). The viewer also stripsdisplay,overflow-x,width,max-width,<style>, ... but I'm sure I don't need to tell you as you should know your own codebase. This sanitizer removes any option I have to solve the issue myself.So I would like you to remove the rule entirely, or maybe reduce it to 40px if you don't want other tables to collapse. That would be the easiest solution. Alternatively, add an option in the editor to insert a 5.5e stat block (that is portable across pages. Maybe the official stat blocks could then use those styles as well and the website would become a bit more consistent...) and let the user fill in the details (I'm not talking about adding support for custom arbitrary stat blocks to mechanically work with your VTT, just that they render correctly). You can also add this to any editor once you have implemented it once. So it would become usable in other homebrew contexts (like magic items, backgrounds, species, ...).
By implementing any of these, users can actually insert a 5.5e stat block into subclasses without having to fight the website to the death.
Thanks in advance! (if there is already a way to insert stat blocks then I'm just blind)