From 6a642a6bd44ec130b6b62e9a4397cbe4886e17d0 Mon Sep 17 00:00:00 2001 From: Paul Maskelyne Date: Fri, 4 Oct 2024 10:30:58 +0100 Subject: [PATCH] update comments --- scss/mixins/_grid.scss | 9 +++++++++ system/src/sheets/ItemSheetSD.mjs | 1 + system/src/utils/UtilitySD.mjs | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index 00bfe1c1..aed32e10 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -25,5 +25,14 @@ $columns: 6; } } +@mixin grid-colstart { + @for $i from 1 through $columns { + .grid-colstart-#{$i} { + grid-column-start: #{$i}; + } + } +} + @include grid-colspan; +@include grid-colstart; @include grid-x-columns; diff --git a/system/src/sheets/ItemSheetSD.mjs b/system/src/sheets/ItemSheetSD.mjs index b44ed513..4a804468 100644 --- a/system/src/sheets/ItemSheetSD.mjs +++ b/system/src/sheets/ItemSheetSD.mjs @@ -99,6 +99,7 @@ export default class ItemSheetSD extends ItemSheet { await shadowdark.compendiums.languages(), this.item.system.languages.fixed ?? [] ); + const [selectedLanguages, availableSelectLanguages] = await shadowdark.utils.getDedupedSelectedItems( await shadowdark.compendiums.languages(), diff --git a/system/src/utils/UtilitySD.mjs b/system/src/utils/UtilitySD.mjs index dc871a31..bacbe5a2 100644 --- a/system/src/utils/UtilitySD.mjs +++ b/system/src/utils/UtilitySD.mjs @@ -62,8 +62,8 @@ export default class UtilitySD { /** * Creates de-duplicated lists of Selected and Unselected Items. * - * @param {allItems} Array A list of all available skills - * @param {items} Array A list of currently selected skills + * @param {allItems} Array A list of all available items + * @param {items} Array A list of currently selected items * * @returns {Promise} Promise which represents an array containing both the * selected and unselected skill arrays