From 0b4266ba089a2614184845cc2fea8c697ecbc94f Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 2 Feb 2026 10:50:18 +0100 Subject: [PATCH] Revert "Initial chat message description design change" This reverts commit f4f5fd6c24d05c6967615fe8498a34aee739b1b3. --- module/documents/chatMessage.mjs | 2 +- styles/less/ui/chat/chat.less | 33 -------------------- templates/ui/chat/parts/description-part.hbs | 7 ++--- 3 files changed, 3 insertions(+), 39 deletions(-) diff --git a/module/documents/chatMessage.mjs b/module/documents/chatMessage.mjs index c1803b14..668ad06b 100644 --- a/module/documents/chatMessage.mjs +++ b/module/documents/chatMessage.mjs @@ -101,7 +101,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage { CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance ).expandRollMessage, - rollSections = html.querySelectorAll('.roll-part, .description-section'), + rollSections = html.querySelectorAll('.roll-part'), itemDesc = html.querySelector('.domain-card-move'); rollSections.forEach(s => { if (s.classList.contains('roll-section')) { diff --git a/styles/less/ui/chat/chat.less b/styles/less/ui/chat/chat.less index 9647964b..1a6c9427 100644 --- a/styles/less/ui/chat/chat.less +++ b/styles/less/ui/chat/chat.less @@ -574,39 +574,6 @@ } } - .chat-roll .description-section { - background: @dark-80; - border-radius: 6px; - - .description-header { - width: 100%; - display: flex; - flex-direction: column; - align-items: center; - gap: 2px; - - .description-header-title { - color: @golden; - font-size: var(--font-size-16); - } - - .description-header-subtitle { - font-size: var(--font-size-14); - padding-bottom: 2px; - } - } - - .roll-part-content .dice-tooltip .wrapper { - i { - margin: 0; - } - - > :first-child:not(.target-selector) { - margin: 0; - } - } - } - .roll-buttons { display: flex; gap: 5px; diff --git a/templates/ui/chat/parts/description-part.hbs b/templates/ui/chat/parts/description-part.hbs index b9d9f7a4..2e73a753 100644 --- a/templates/ui/chat/parts/description-part.hbs +++ b/templates/ui/chat/parts/description-part.hbs @@ -1,8 +1,5 @@ -
-
-
{{title}}
-
{{title}}
-
+
+
{{localize "DAGGERHEART.GENERAL.description"}}