mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Make editing the biography take the entire tab and tweak rendering (#1352)
This commit is contained in:
parent
165068a9ee
commit
e57e7327d6
2 changed files with 23 additions and 4 deletions
|
|
@ -16,5 +16,24 @@
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.biography-section {
|
||||||
|
prose-mirror {
|
||||||
|
--min-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
prose-mirror.inactive .editor-content {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:has(.prosemirror.active) {
|
||||||
|
.biography-section {
|
||||||
|
flex: 1;
|
||||||
|
&:not(:has(prose-mirror.active)) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
data-tab='{{tabs.biography.id}}'
|
data-tab='{{tabs.biography.id}}'
|
||||||
data-group='{{tabs.biography.group}}'
|
data-group='{{tabs.biography.group}}'
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="items-section">
|
<div class="items-section">
|
||||||
<fieldset class="flex">
|
<fieldset class="flex">
|
||||||
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.characteristics'}}</legend>
|
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.characteristics'}}</legend>
|
||||||
|
|
@ -22,13 +21,14 @@
|
||||||
<span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span>
|
<span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span>
|
||||||
{{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}}
|
{{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
|
||||||
|
<fieldset class="biography-section">
|
||||||
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend>
|
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend>
|
||||||
{{formInput background.field value=background.value enriched=background.enriched toggled=true}}
|
{{formInput background.field value=background.value enriched=background.enriched toggled=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
|
||||||
|
<fieldset class="biography-section">
|
||||||
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend>
|
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend>
|
||||||
{{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}}
|
{{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue