diff --git a/rpg-docs/Model/Character/Characters.js b/rpg-docs/Model/Character/Characters.js index 4947adc9..678fd8e5 100644 --- a/rpg-docs/Model/Character/Characters.js +++ b/rpg-docs/Model/Character/Characters.js @@ -96,7 +96,9 @@ var strings = [ "personality", "ideals", "bonds", - "flaws" + "flaws", + "backstory", + "notes" ]; //Data structure for the character @@ -126,7 +128,8 @@ Character = function(owner){ canDeathSave: true }; - for(var i = 0, l = string.length; i < l; i++){ + this.strings = {}; + for(var i = 0, l = strings.length; i < l; i++){ this.strings[strings[i]] = ""; }; diff --git a/rpg-docs/client/views/character/character.css b/rpg-docs/client/views/character/character.css index 7fd04e6c..b9281658 100644 --- a/rpg-docs/client/views/character/character.css +++ b/rpg-docs/client/views/character/character.css @@ -2,6 +2,7 @@ display: flex; flex-wrap: wrap; justify-content: space-around; + align-items: flex-start; } #abilityScores { diff --git a/rpg-docs/client/views/character/character.html b/rpg-docs/client/views/character/character.html index ca1e3ee6..8e757dfc 100644 --- a/rpg-docs/client/views/character/character.html +++ b/rpg-docs/client/views/character/character.html @@ -12,7 +12,26 @@
+

Description

{{> textField character=this field="description"}}
+
+

Personality

+ {{> textField character=this field="personality"}} +

Ideals

+ {{> textField character=this field="ideals"}} +

Bonds

+ {{> textField character=this field="bonds"}} +

Flaws

+ {{> textField character=this field="flaws"}} +
+
+

Backstory

+ {{> textField character=this field="backstory"}} +
+
+

Notes

+ {{> textField character=this field="notes"}} +
\ No newline at end of file diff --git a/rpg-docs/client/views/character/textField/textField.css b/rpg-docs/client/views/character/textField/textField.css index eb3eb2d5..d525978d 100644 --- a/rpg-docs/client/views/character/textField/textField.css +++ b/rpg-docs/client/views/character/textField/textField.css @@ -1,11 +1,8 @@ #textOutput.notEditing{ - cursor: default; + cursor: pointer; } -#textInput { - width:100%; - height:100%; - box-sizing: border-box; /* For IE and modern versions of Chrome */ - -moz-box-sizing: border-box; /* For Firefox */ - -webkit-box-sizing: border-box; +.editBox { + min-height: 36px; + width: 300px; } \ No newline at end of file diff --git a/rpg-docs/client/views/character/textField/textField.html b/rpg-docs/client/views/character/textField/textField.html index abc51a61..ec29f662 100644 --- a/rpg-docs/client/views/character/textField/textField.html +++ b/rpg-docs/client/views/character/textField/textField.html @@ -1,8 +1,8 @@