This code produces the following image: CSS startRoll(`&{template:special} {{title=${character_name}}} {{${attackname}}} {{${attacknotes}}} {{roll=[[${dice}d20]]}} {{Attack Total: ${local_h_attack_based_on_score} }} {{Final TN: ${tn} }} {{Advantages: ${adv_count}}} {{Disadvantages: ${disadv_count}}} {{result=[[0]]}} {{Base Damage: ${total_damage}}}`, diceroll => {...
HTML <div class="sheet-content">
<div class="sheet-key">Roll</div>
<div class="sheet-value"> {{computed::roll}}</div>
{{#allprops() title roll result}} <div class="sheet-key">{{key}}</div> <div class="sheet-value">{{value}}</div> {{/allprops() title roll result}}
<div class="sheet-key">Result</div>
<div class="sheet-value"> {{computed::result}}</div> </div> This code produces the following image (two columns): CSS startRoll(`&{template:special} {{title=${character_name}}} {{${attackname}}} {{${attacknotes}}} {{roll=[[${dice}d20]]}} {{Attack Total: ${local_h_attack_based_on_score} }} {{Final TN: ${tn} }} {{Advantages: ${adv_count}}} {{Disadvantages: ${disadv_count}}} {{result=[[0]]}} {{Base Damage: ${total_damage}}}`, diceroll => { HTML <rolltemplate class="sheet-rolltemplate-special"> <div class="sheet-container"> <hr> <div class="sheet-header"> {{#title}}<div class="sheet-title" style="font-size: 24px; background-color: darkblue; color: white; padding: 10px;">{{title}}</div>{{/title}} </div> <div>-----</div> <div class="sheet-content" style="font-size: 16px;"> {{#allprops() title roll result}} <div class="sheet-key">{{key}}{{value}}</div> {{/allprops() title roll result}} </div> <div>-----</div> <div class="sheet-value" style="font-size: 20px; padding: 10px;"> Roll: {{computed::roll}}</div> <div class="sheet-value" style="font-size: 20px; padding: 10px;"> Result: {{computed::result}}</div> </div> </rolltemplate>
Yes, I have stuff that should be in CSS...ignore it, it's there for testing. How do I modify the html to support two columns but with less space between them?I have to widen my chat window to see the full text; it gets cut off if made narrower. (side note: it was working at one time, but I refreshed the screen, and it widened. I don't know what happened to change it).