Skip to content

Commit e1733d8

Browse files
committed
[#6813] Add status indicator to changes to prepare for conditions
1 parent b8b008e commit e1733d8

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

lang/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,8 @@
25332533
}
25342534
},
25352535
"Status": {
2536+
"ChangeActive": "Change Active",
2537+
"ChangeInactive": "Change Inactive",
25362538
"Inactive": "Inactive",
25372539
"Passive": "Passive",
25382540
"Temporary": "Temporary",

less/v2/inventory.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,12 @@
485485
}
486486

487487
.changes .change-row {
488-
position: relative;
489-
border-top: var(--activity-row-border);
490-
padding-left: 20px;
488+
border-block-start: var(--activity-row-border);
491489
min-block-size: 32px;
490+
padding-inline-start: 20px;
491+
position: relative;
492492

493-
&:last-child { border-bottom: var(--activity-row-border); }
493+
&:last-child { border-block-end: var(--activity-row-border); }
494494

495495
&::before {
496496
content: "\f192";
@@ -512,6 +512,7 @@
512512
}
513513

514514
.item-name .title { font-size: var(--font-size-12); }
515+
.application-status { align-content: center; }
515516
}
516517
}
517518

templates/effects/columns/controls.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
data-context-menu aria-label="{{ localize 'DND5E.AdditionalControls' }}">
3636
<i class="fa-solid fa-ellipsis-vertical" inert></i>
3737
</button>
38+
39+
{{else if isChange}}
40+
41+
<span class="application-status">
42+
<!-- TODO: Change this to checking `entry.applied` once conditions are merged -->
43+
<i class="fa-solid fa-{{ ifThen effect.active 'check' 'xmark' }}"
44+
aria-label="{{ localize (concat 'DND5E.EFFECT.Status.Change' (ifThen effect.active 'Active' 'Inactive')) }}"></i>
45+
</span>
46+
3847
{{/if}}
3948

4049
</div>

0 commit comments

Comments
 (0)