Skip to content

Commit

Permalink
embedded image adjustment for roll templates
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-roll20 committed Dec 10, 2024
1 parent 72003fc commit 2360f57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ADnD_1E_Revised/1ESheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -3731,14 +3731,18 @@ details[open].thac0-box {
/*images*/
.sheet-rolltemplate-attacks a img,
.sheet-rolltemplate-general a img {
aspect-ratio: 1;
aspect-ratio: auto;
display: flex;
flex-direction: row;
max-height: 300px;
justify-self: center;
margin: auto;
max-height: 50vw;
max-width: fit-content;
object-fit: contain;
object-position: center;
outline: 2px solid #000;
overflow: clip;
margin: auto;
width: calc(100% - 5px);
}

.sheet-rolltemplate-attacks .sheet-subheader a img,
Expand Down
2 changes: 2 additions & 0 deletions ADnD_1E_Revised/1ESheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ <h5 class="right two-columns">
<span class="right"> • 12/8/24'</span>
</h5>
<ul>
<li>Roll templates now have an increased max-height for embedded images based on the viewport width. Should help to display larger images.<br>
<strong>FYI:</strong> images can be included with sheet rolls by using roll20's normal chat image format. ie <strong>[x](URL that ends in a common image format such as .jpg, .png, .gif)</strong> So if you want to display an image with a given roll, simply include a properly formatted image code macro within any text-based field. ie Name, Notes, Description. Macro-text can also be modified to include an image. ie <strong>{{subtag=[x](URL)}}</strong></li>
<li>Fix for crit damage rolls; I've added parenthesis around the crit damage dice so that the entire roll is multiplied x2. This is a non-issue unless you want bonuses included with the crit multiplier. While it's common for crit damage to only double the dice roll and then add bonuses, you can include bonuses with the damage dice if desired. Note that the damage modifier field will also be included after any multiplier. Use it however you like.</li>
<li>Rollback of last weeks single column not spanning full width 'fix' and a proper redo that doesn't cause collateral issues with the spell header layout.</li>
<li>Small fix for single column spells and special abilities not spanning the full width.</li>
Expand Down

0 comments on commit 2360f57

Please sign in to comment.