Improve sidebar appearance when labels are long (#1238)

This commit is contained in:
Carlos Fernandez 2025-11-06 10:02:22 -05:00 committed by GitHub
parent 659670c403
commit ce3e2a804c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 185 additions and 104 deletions

View file

@ -78,13 +78,9 @@
<side-line-div></side-line-div>
</div>
<ul class="items-sidebar-list">
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=document.system.attack
type='action'
hideTags=true
hideDescription=true
hideResources=true
noExtensible=true
noCompendiumEdit=true
}}
</ul>

View file

@ -116,24 +116,16 @@
</div>
<ul class="items-sidebar-list">
{{#if document.system.usedUnarmed}}
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=document.system.usedUnarmed
type='action'
hideTags=true
hideDescription=true
hideResources=true
noExtensible=true
}}
{{/if}}
{{#each document.items as |item|}}
{{#if item.system.equipped}}
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=item
type=item.type
hideTags=true
hideDescription=true
hideResources=true
noExtensible=true
}}
{{/if}}
{{/each}}
@ -147,13 +139,9 @@
</div>
<ul class="items-sidebar-list">
{{#each document.system.domainCards.loadout as |card|}}
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=card
type='domainCard'
hideTags=true
hideDescription=true
hideResources=true
noExtensible=true
}}
{{/each}}

View file

@ -8,11 +8,9 @@
</div>
{{#if document.system.partner}}
<ul class="items-list">
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=document.system.partner
type='companion'
hideTags=true
hideDescription=true
isActor=true
hideTooltip=true
}}
@ -28,11 +26,9 @@
<side-line-div></side-line-div>
</div>
<ul class="items-list">
{{> 'daggerheart.inventory-item'
{{> 'daggerheart.inventory-item-compact'
item=document.system.attack
type='action'
hideTags=true
hideDescription=true
hideTooltip=true
}}
</ul>