Skip to content

Commit

Permalink
Merge pull request dmdorman#1356 from phBalance/phBalance/editor-whit…
Browse files Browse the repository at this point in the history
…espace-formatting

fix(editor): HDC background tab fields are all pre styled - honour it
  • Loading branch information
phBalance authored Oct 20, 2024
2 parents 2f49968 + d3674d0 commit 2e71a45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions scss/components/_text-editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Fields have whitespace that should be honoured
.editor-html-pre-styled {
white-space: pre-wrap;
}
3 changes: 3 additions & 0 deletions scss/herosystem6e.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@

/* Effects Panel */
@include meta.load-css("components/effects-panel");

/* Styles for TextEditor */
@include meta.load-css("components/text-editor");
15 changes: 7 additions & 8 deletions templates/actor/actor-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,12 @@
</div>

<table>

{{#if actor.system.CHARACTER.CHARACTER_INFO.BIOGRAPHY}}
<tr>
<th class="left">{{localize "ActorSheet.Biography"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-biography-content">
{{editor
enrichedBIOGRAPHY
target="system.CHARACTER.CHARACTER_INFO.BIOGRAPHY"
Expand All @@ -832,7 +831,7 @@
<th class="left">{{localize "ActorSheet.BACKGROUND"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-background-content">
{{editor
enrichedBACKGROUND
target="system.CHARACTER.CHARACTER_INFO.BACKGROUND"
Expand All @@ -846,7 +845,7 @@
<th class="left">{{localize "ActorSheet.PERSONALITY"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-personality-content">
{{editor
enrichedPERSONALITY
target="system.CHARACTER.CHARACTER_INFO.PERSONALITY"
Expand All @@ -860,7 +859,7 @@
<th class="left">{{localize "ActorSheet.QUOTE"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-quote-content">
{{editor
enrichedQUOTE
target="system.CHARACTER.CHARACTER_INFO.QUOTE"
Expand All @@ -874,7 +873,7 @@
<th class="left">{{localize "ActorSheet.TACTICS"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-tactics-content">
{{editor
enrichedTACTICS
target="system.CHARACTER.CHARACTER_INFO.TACTICS"
Expand All @@ -888,7 +887,7 @@
<th class="left">{{localize "ActorSheet.CAMPAIGN_USE"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-campaign-use-content">
{{editor
enrichedCAMPAIGN_USE
target="system.CHARACTER.CHARACTER_INFO.CAMPAIGN_USE"
Expand All @@ -902,7 +901,7 @@
<th class="left">{{localize "ActorSheet.APPEARANCE"}}</th>
</tr>
<tr>
<td class="left">
<td class="left editor-html-pre-styled editor-appearance-content">
{{editor
enrichedAPPEARANCE
target="system.CHARACTER.CHARACTER_INFO.APPEARANCE"
Expand Down

0 comments on commit 2e71a45

Please sign in to comment.