From 7f73516f423df88ea5eca7ae432c48bcdd11fb12 Mon Sep 17 00:00:00 2001 From: Byroks Date: Sat, 20 Jan 2024 13:01:25 +0100 Subject: [PATCH] #46-problems-with-character-description-editor Changes: + adjust height and width of the editor WIP for #46 Closes #44 --- source/style/Character-sheet.less | 18 +++++++++------- templates/sheets/character/description.hbs | 24 +++++++++++----------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/source/style/Character-sheet.less b/source/style/Character-sheet.less index 1a97399..75a86bb 100644 --- a/source/style/Character-sheet.less +++ b/source/style/Character-sheet.less @@ -6,14 +6,14 @@ .flexbox { display: flex; flex-direction: row; - flex-wrap: wrap + flex-wrap: wrap; } .flexcolumn { flex-wrap: wrap; } - .flexcolumn-1{ + .flexcolumn-1 { flex: 100%; flex-wrap: wrap; } @@ -128,13 +128,13 @@ table { background-color: beige; border: 0px solid transparent; - &.bordered{ + &.bordered { border-collapse: separate; border: 2px solid black; border-radius: 10px; font-size: larger; font-weight: bolder; - } + } } td, @@ -225,7 +225,7 @@ background: rgba(255, 255, 255, 0.5); font-size: smaller; text-align: center; - line-height: 0.8rem; + line-height: 0.8rem; } span.spell-process { @@ -282,8 +282,12 @@ margin: 0.5rem 0.5rem 0.5rem 0.5rem; height: 180px; background-color: #eaead7; - } - + .editor { + height: 100%; + width: 100%; + } + } + .attributes { padding: 0.5rem 0.5rem 0.5rem 0.5rem; display: flex; diff --git a/templates/sheets/character/description.hbs b/templates/sheets/character/description.hbs index 1168245..b8dd005 100644 --- a/templates/sheets/character/description.hbs +++ b/templates/sheets/character/description.hbs @@ -1,10 +1,10 @@
-
{{localize "midgard5.characteristics"}}
+
{{localize "midgard5.characteristics"}}
- + @@ -25,26 +25,26 @@ - +
{{localize "midgard5.origin"}} {{localize "midgard5.faith"}}
- +
-
{{localize "midgard5.description"}}
-
-
{{editor characterDescription target="data.info.description" button=false }}
+
{{localize "midgard5.description"}}
+
+
{{editor content=data.info.description target="data.info.description" button=true owner=owner editable=editable}}
-
+
-
{{localize "midgard5.background"}}
-
-
{{editor characterBackground target="data.info.background" button=false}}
+
{{localize "midgard5.background"}}
+
+
{{editor content=data.info.background target="data.info.background" button=true owner=owner editable=editable}}
-
+
\ No newline at end of file -- 2.40.1