diff --git a/module/documents/chatMessage.mjs b/module/documents/chatMessage.mjs index 668ad06b..c1803b14 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'), + rollSections = html.querySelectorAll('.roll-part, .description-section'), 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 1a6c9427..9647964b 100644 --- a/styles/less/ui/chat/chat.less +++ b/styles/less/ui/chat/chat.less @@ -574,6 +574,39 @@ } } + .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 2e73a753..b9d9f7a4 100644 --- a/templates/ui/chat/parts/description-part.hbs +++ b/templates/ui/chat/parts/description-part.hbs @@ -1,5 +1,8 @@ -
-
{{localize "DAGGERHEART.GENERAL.description"}}
+
+
+
{{title}}
+
{{title}}
+