Reduce default icon size, Fix #27

This commit is contained in:
LeRatierBretonnien 2025-01-09 15:54:41 +01:00
parent 034a60bf19
commit 3adb34d721
4 changed files with 17 additions and 12 deletions

View File

@ -682,7 +682,7 @@ i.fvtt-cthulhu-eternal {
align-items: center; align-items: center;
gap: 4px; gap: 4px;
min-width: 13rem; min-width: 13rem;
max-width: 13srem; max-width: 13rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .rollable:hover, .fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .rollable:hover,
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .rollable:focus { .fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .rollable:focus {
@ -694,12 +694,12 @@ i.fvtt-cthulhu-eternal {
max-width: 2rem; max-width: 2rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .damage { .fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .damage {
min-width: 5rem; min-width: 6rem;
max-width: 5rem; max-width: 6rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .name { .fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .name {
min-width: 8rem; min-width: 10rem;
max-width: 8rem; max-width: 10rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .item-img { .fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .item-img {
width: 24px; width: 24px;

View File

@ -151,7 +151,7 @@ export default class CthulhuEternalProtagonist extends foundry.abstract.TypeData
} }
let resourceIndex = Math.max(Math.min(this.resources.permanentRating, 20), 0) let resourceIndex = Math.max(Math.min(this.resources.permanentRating, 20), 0)
let breakdown = SYSTEM.RESOURCE_BREAKDOWN[this.resources.resourceIndex] let breakdown = SYSTEM.RESOURCE_BREAKDOWN[resourceIndex]
if (this.resources.hand !== breakdown.hand) { if (this.resources.hand !== breakdown.hand) {
updates[`system.resources.hand`] = breakdown.hand updates[`system.resources.hand`] = breakdown.hand
} }

View File

@ -466,7 +466,7 @@
align-items: center; align-items: center;
gap: 4px; gap: 4px;
min-width: 13rem; min-width: 13rem;
max-width: 13srem; max-width: 13rem;
.rollable:hover, .rollable:hover,
.rollable:focus { .rollable:focus {
text-shadow: 0 0 8px var(--color-shadow-primary); text-shadow: 0 0 8px var(--color-shadow-primary);
@ -477,12 +477,12 @@
max-width: 2rem; max-width: 2rem;
} }
.damage { .damage {
min-width: 5rem; min-width: 6rem;
max-width: 5rem; max-width: 6rem;
} }
.name { .name {
min-width: 8rem; min-width: 10rem;
max-width: 8rem; max-width: 10rem;
} }
.item-img { .item-img {
width: 24px; width: 24px;

View File

@ -9,12 +9,17 @@
{{#each weapons as |item|}} {{#each weapons as |item|}}
{{!log 'weapon' this}} {{!log 'weapon' this}}
<div class="weapon item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true"> <div class="weapon item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" /> <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
<img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
<div class="name rollable" data-roll-type="weapon" data-tooltip="{{{item.system.description}}}"> <div class="name rollable" data-roll-type="weapon" data-tooltip="{{{item.system.description}}}">
{{item.name}} {{item.name}}
</div> </div>
<img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
<a class="damage rollable" data-item-id="{{item.id}}" data-action="roll" data-roll-type="damage" <a class="damage rollable" data-item-id="{{item.id}}" data-action="roll" data-roll-type="damage"
data-roll-value="{{item.system.damage}}">{{localize "CTHULHUETERNAL.Label.damageShort"}} : data-roll-value="{{item.system.damage}}">
{{localize "CTHULHUETERNAL.Label.damageShort"}} :
{{item.system.damage}}</a> {{item.system.damage}}</a>
<div class="controls"> <div class="controls">
<a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}" <a data-tooltip="{{localize 'CTHULHUETERNAL.Edit'}}" data-action="edit" data-item-id="{{item.id}}"