mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Merge branch 'main' into 157-feature-simplify-and-refactor-item-sheets
This commit is contained in:
commit
89e1511aaa
3 changed files with 3 additions and 3 deletions
|
|
@ -196,9 +196,7 @@ export const tagifyElement = (element, options, onChange, tagifyOptions = {}) =>
|
|||
const unusedDropDownItems = event.detail.tagify.suggestedListItems;
|
||||
const missingOptions = Object.keys(options).filter(x => !unusedDropDownItems.find(item => item.value === x));
|
||||
const removedItem = missingOptions.find(x => !selectedOptions.find(item => item.value === x));
|
||||
const addedItem = removedItem
|
||||
? null
|
||||
: selectedOptions.find(x => !missingOptions.find(item => item === x.value));
|
||||
const addedItem = removedItem ? null : selectedOptions.find(x => missingOptions.find(item => item === x.value));
|
||||
|
||||
const changedItem = { option: removedItem ?? addedItem.value, removed: Boolean(removedItem) };
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
/* Background */
|
||||
/* Duality */
|
||||
/* Fear */
|
||||
@import '../node_modules/@yaireo/tagify/dist/tagify.css';
|
||||
.daggerheart.sheet.class .editor {
|
||||
height: 500px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
@import './less/global/feature-section.less';
|
||||
@import './less/global/inventory-item.less';
|
||||
@import './less/global/inventory-fieldset-items.less';
|
||||
@import '../node_modules/@yaireo/tagify/dist/tagify.css';
|
||||
|
||||
.daggerheart {
|
||||
.vertical-separator {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue