Improved description enrichment to not bloat it outside of the CompendiumBrowser

This commit is contained in:
WBHarry 2026-03-07 00:31:33 +01:00
parent 83c3da0130
commit e1fef44d21
7 changed files with 46 additions and 41 deletions

View file

@ -252,7 +252,7 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
/* If any noticeable slowdown occurs, consider replacing with enriching description on clicking to expand descriptions */
for (const item of this.items) {
item.system.enrichedDescription =
(await item.system.getEnrichedDescription?.()) ??
(await item.system.getEnrichedDescription?.({ inCompendiumBrowser: true })) ??
(await foundry.applications.ux.TextEditor.implementation.enrichHTML(item.description));
}