From e54d74e2d07cf2b8c5bc54c79545c4a5d4284dc5 Mon Sep 17 00:00:00 2001 From: Jan Ole Peek Date: Tue, 19 Sep 2023 18:50:08 -0700 Subject: [PATCH] Fix bugs --- css/dndbeyond-character-sheet.css | 12 ++++++++++++ dndbeyond-character-sheet.js | 16 +--------------- module.json | 4 ++-- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/css/dndbeyond-character-sheet.css b/css/dndbeyond-character-sheet.css index 9881606..c3549a0 100755 --- a/css/dndbeyond-character-sheet.css +++ b/css/dndbeyond-character-sheet.css @@ -929,6 +929,18 @@ padding: 6px 0 4px 0; } +.dndbcs.sheet.actor .inventory-list .item-summary, +.dndbcs.sheet.actor .actions-list .item-summary, +.dndbcs.sheet.actor .features-list .item-summary, +.dndbcs.sheet.actor .spellbook-list .item-summary { + flex: 0 0 100%; + font-size: 12px; + line-height: 16px; + padding: 0.25em 0.5em; + color: #191813; + border-top: 1px solid #c9c7b8; +} + .dndbcs.sheet .features-list .item-detail input[type="text"] { width: 10px; } diff --git a/dndbeyond-character-sheet.js b/dndbeyond-character-sheet.js index 6ed4d45..f2fbe14 100644 --- a/dndbeyond-character-sheet.js +++ b/dndbeyond-character-sheet.js @@ -51,6 +51,7 @@ class DNDBeyondCharacterSheet5e extends dnd5e.applications.actor.ActorSheet5eCha /* -------------------------------------------- */ activateListeners(html) { + super.activateListeners(html); let searchInput = html.find(".filter-search input"); searchInput.on("input", function() { filterInventoryList(this, html); @@ -170,20 +171,5 @@ Hooks.on('ready', () => { console.log("DNDBeyond-Character-Sheet | Better Rolls 5e module not installed - no big deal, carry on!"); } - // searchInput.on("blur", async function() { - // console.log("here?"); - // let id = $(this).attr("id"), value = $(this).val(); - // switch (id) { - // case "item-search": - // await actor2.setFlag(CONSTANTS.MODULE_ID, "item-search", value); - // break; - // case "spell-search": - // await actor2.setFlag(CONSTANTS.MODULE_ID, "spell-search", value); - // break; - // case "feat-search": - // await actor2.setFlag(CONSTANTS.MODULE_ID, "feat-search", value); - // break; - // } - // }); }); \ No newline at end of file diff --git a/module.json b/module.json index 21f8138..931ad06 100755 --- a/module.json +++ b/module.json @@ -10,11 +10,11 @@ ], "compatibility": { "minimum": "11", - "verified": "11.308", + "verified": "11.309", "maximum": "11" }, "url": "https://github.com/jopeek/fvtt-dndbeyond-character-sheet", - "version": "11.230.4", + "version": "11.230.5", "esmodules": [ "/dndbeyond-character-sheet.js" ],