diff --git a/langs/en-ca.json b/langs/en-ca.json index daef559..ce47b7a 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -65,6 +65,8 @@ "resizable": "Resizable", "not-resizable": "Not Resizable", "macro-is-in-use": "The Macro is used by {count} items/attributes in the world or Actors, the items will lose their ability to use the macro.", + "roll": "Roll", + "use": "Use", "item": { "weight": "Weight", "quantity": "Quantity", diff --git a/module/apps/PlayerSheet.mjs b/module/apps/PlayerSheet.mjs index 7ed89fe..1565f92 100644 --- a/module/apps/PlayerSheet.mjs +++ b/module/apps/PlayerSheet.mjs @@ -382,6 +382,7 @@ export class PlayerSheet extends weight: config.weightFormatter(item.system.quantifiedWeight), isExpanded: this.#expandedItems.has(item.uuid), canExpand: item.system.description.length > 0, + trigger: item.system.trigger, }; ctx.description = ``; diff --git a/styles/Apps/PlayerSheet.css b/styles/Apps/PlayerSheet.css index 3442d76..e450389 100644 --- a/styles/Apps/PlayerSheet.css +++ b/styles/Apps/PlayerSheet.css @@ -135,8 +135,8 @@ margin-bottom: 0; .summary { - display: grid; - grid-template-columns: min-content auto 1fr 50px auto; + display: flex; + flex-direction: row; align-items: center; gap: 8px; background: var(--item-card-header-background); @@ -154,6 +154,7 @@ display: flex; flex-direction: column; gap: 4px; + flex-grow: 1; } .name { @@ -164,10 +165,15 @@ opacity: 90%; } + input { + width: 50px; + } + input, button { background: var(--item-card-header-input-background); color: var(--item-card-header-input-colour); text-align: center; + height: 32px; &:disabled { color: var(--item-card-header-disabled-input-colour); @@ -175,14 +181,17 @@ } } - .expand-button { + button { border: none; - aspect-ratio: 1; &:focus-visible { filter: brightness(150%); outline: none; } + } + + .expand-button { + aspect-ratio: 1; &[data-expanded="true"] { rotate: 180deg; diff --git a/templates/PlayerSheet/tabs/attributes/attribute.hbs b/templates/PlayerSheet/tabs/attributes/attribute.hbs index ac84637..f2123ca 100644 --- a/templates/PlayerSheet/tabs/attributes/attribute.hbs +++ b/templates/PlayerSheet/tabs/attributes/attribute.hbs @@ -10,7 +10,7 @@ type="button" data-action="executeTrigger" > - Roll + {{ localize "taf.misc.roll" }} {{/if}} {{ name }} {{ weight }} + {{#if trigger}} + + {{/if}}