From 9c9c5b0c0cdc3a3e995439300430675888be1c06 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Mon, 13 Oct 2025 18:12:16 -0400 Subject: [PATCH] Move styling to tab description and reduce tab specific overrides --- styles/less/global/prose-mirror.less | 7 +++++++ styles/less/global/tab-description.less | 9 ++++----- styles/less/sheets/items/item-sheet-shared.less | 15 --------------- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/styles/less/global/prose-mirror.less b/styles/less/global/prose-mirror.less index 506fb8b7..f3891e54 100644 --- a/styles/less/global/prose-mirror.less +++ b/styles/less/global/prose-mirror.less @@ -4,10 +4,17 @@ .application.daggerheart { prose-mirror { height: 100% !important; + flex: 1; + + &.active + .artist-attribution { + display: none; + } .editor-menu { background-color: transparent; + padding: 0 0 8px 0; } + .editor-content { scrollbar-width: thin; scrollbar-color: light-dark(@dark-blue, @golden) transparent; diff --git a/styles/less/global/tab-description.less b/styles/less/global/tab-description.less index 4d81f2f2..68949fc9 100644 --- a/styles/less/global/tab-description.less +++ b/styles/less/global/tab-description.less @@ -3,11 +3,10 @@ .daggerheart.dh-style { .tab.active.description { - overflow-y: hidden !important; + display: flex; + flex-direction: column; height: -webkit-fill-available !important; - - fieldset { - height: -webkit-fill-available; - } + overflow-y: hidden !important; + padding: 10px 20px 0 20px; } } diff --git a/styles/less/sheets/items/item-sheet-shared.less b/styles/less/sheets/items/item-sheet-shared.less index e57f0654..d0a8cc48 100644 --- a/styles/less/sheets/items/item-sheet-shared.less +++ b/styles/less/sheets/items/item-sheet-shared.less @@ -10,19 +10,4 @@ font-family: @font-body; color: light-dark(@chat-blue-bg, @beige-50); } - - .tab.description.active { - display: flex; - flex-direction: column; - padding: 0 20px; - .prosemirror { - flex: 1; - &.inactive .editor-content { - padding-top: 10px; - } - &.active + .artist-attribution { - display: none; - } - } - } }