Ajustement champs description

This commit is contained in:
Vincent Vandemeulebrouck 2022-12-15 00:36:12 +01:00
parent 6af6e41bc9
commit ddc37c6969
12 changed files with 46 additions and 43 deletions

View File

@ -572,22 +572,32 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) {
flex-grow: 3; flex-grow: 3;
} }
.editor.prosemirror {
height: fit-content;
min-height: 20rem;
}
.large-editor {
border: 2;
height: fit-content;
min-height: 12rem;
padding: 0 3px;
}
.editor { .editor {
border: 2; border: 2;
height: 10rem; height: fit-content;
min-height: 8rem;
padding: 0 3px; padding: 0 3px;
} }
.medium-editor { .medium-editor {
border: 2; border: 2;
height: 240px; min-height: 8rem;
padding: 0 3px; padding: 0 3px;
} }
.small-editor { .small-editor {
border: 2; border: 2;
height: 150px; min-height: 4rem;
padding: 0 3px; padding: 0 3px;
} }

View File

@ -63,17 +63,10 @@
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/inventaire.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/inventaire.html"}}
</div> </div>
{{!-- Biography Tab --}} {{!-- Description Tab --}}
<div class="tab description" data-group="primary" data-tab="description"> <div class="tab description" data-group="primary" data-tab="description">
<div class="form-group large-editor">
<div class="form-group"> {{editor description target="system.description" button=true owner=owner editable=editable engine="prosemirror"}}
<span class="item-name"><h4>Race</h4></span>
<input type="text" name="system.race" value="{{system.race}}" data-dtype="String" />
</div>
<div class="form-group editor">
<span class="item-name"><h4>Description</h4>
{{editor description target="system.description" button=true owner=owner editable=true}}
</div> </div>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}

View File

@ -43,8 +43,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor description target="system.description" button=true owner=owner editable=true}} {{editor description target="system.description" button=true owner=owner editable=editable engine="prosemirror"}}
</div> </div>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}

View File

@ -180,12 +180,12 @@
<article class="flexcol"> <article class="flexcol">
<h3>Biographie : </h3> <h3>Biographie : </h3>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor biographie target="system.biographie" button=true owner=owner editable=editable}} {{editor biographie target="system.biographie" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
<h3>Notes : </h3> <h3>Notes : </h3>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor notes target="system.notes" button=true owner=owner editable=editable}} {{editor notes target="system.notes" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/xp-journal.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/xp-journal.html"}}
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}

View File

@ -83,8 +83,8 @@
</div> </div>
</div> </div>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor description target="system.description" button=true owner=owner editable=editable}} {{editor description target="system.description" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/editor-notes-mj.html"}}
</div> </div>

View File

@ -1,6 +1,6 @@
{{#if options.isGM}} {{#if options.isGM}}
<h3>Notes du MJ : </h3> <h3>Notes du MJ : </h3>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor notesmj target="system.notesmj" button=true owner=owner editable=editable}} {{editor notesmj target="system.notesmj" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
{{/if}} {{/if}}

View File

@ -1,5 +1,5 @@
<h3>Journal d'Experience</h3> <h3>Journal d'Experience</h3>
<div class="form-group editor"> <div class="form-group large-editor">
<ul class="item-list alterne-list"> <ul class="item-list alterne-list">
{{#each system.experiencelog as |xp key|}} {{#each system.experiencelog as |xp key|}}
<li class="experiencelog flexrow list-item" data-key="{{key}}"> <li class="experiencelog flexrow list-item" data-key="{{key}}">

View File

@ -11,14 +11,14 @@
<section class="sheet-body"> <section class="sheet-body">
<div class="flexcol"> <div class="flexcol">
<label>Extrait</label> <label>Extrait</label>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor extrait target="system.extrait" button=true owner=owner editable=editable}} {{editor extrait target="system.extrait" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
<div class="flexcol"> <div class="flexcol">
<label>Texte complet</label> <label>Texte complet</label>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor texte target="system.texte" button=true owner=owner editable=editable}} {{editor texte target="system.texte" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
</section> </section>

View File

@ -9,25 +9,25 @@
<div class="flexcol"> <div class="flexcol">
<span><label class="alchimie-title">Manipulation : </label></span> <span><label class="alchimie-title">Manipulation : </label></span>
<div class="form-group medium-editor"> <div class="form-group medium-editor">
{{editor manipulation_update target="system.manipulation" button=true owner=owner editable=editable}} {{editor manipulation_update target="system.manipulation" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
<div class="flexcol"> <div class="flexcol">
<span><label class="alchimie-title">Utilisation : </label></span> <span><label class="alchimie-title">Utilisation : </label></span>
<div class="form-group small-editor"> <div class="form-group small-editor">
{{editor utilisation target="system.utilisation" button=true owner=owner editable=editable}} {{editor utilisation target="system.utilisation" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
<div class="flexcol"> <div class="flexcol">
<span><label class="alchimie-title">Enchantement : </label></span> <span><label class="alchimie-title">Enchantement : </label></span>
<div class="form-group small-editor"> <div class="form-group small-editor">
{{editor enchantement target="system.enchantement" button=true owner=owner editable=editable}} {{editor enchantement target="system.enchantement" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
<div class="flexcol"> <div class="flexcol">
<span><label class="alchimie-title">Sur-effet : </label></span> <span><label class="alchimie-title">Sur-effet : </label></span>
<div class="form-group small-editor"> <div class="form-group small-editor">
{{editor sureffet target="system.sureffet" button=true owner=owner editable=editable}} {{editor sureffet target="system.sureffet" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>

View File

@ -24,8 +24,8 @@
</div> </div>
<div class="flexcol"> <div class="flexcol">
<span><label>Ingrédients : </label></span> <span><label>Ingrédients : </label></span>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor ingredients target="system.ingredients" button=true owner=owner editable=editable}} {{editor ingredients target="system.ingredients" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>

View File

@ -111,8 +111,8 @@
</div> </div>
<div class="flexcol"> <div class="flexcol">
<label for="system.succes.poesie">Poésie</label> <label for="system.succes.poesie">Poésie</label>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor system.succes.poesie target="system.succes.poesie" button=true owner=owner editable=editable}} {{editor system.succes.poesie target="system.succes.poesie" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
</div> </div>
@ -156,8 +156,8 @@
</div> </div>
<div class="flexcol"> <div class="flexcol">
<label for="system.echec.poesie">Poésie</label> <label for="system.echec.poesie">Poésie</label>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor system.echec.poesie target="system.echec.poesie" button=true owner=owner editable=editable}} {{editor system.echec.poesie target="system.echec.poesie" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,14 +1,14 @@
<div class="flexcol"> <div class="flexcol">
<span><label>Description : </label></span> <span><label>Description : </label></span>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor description target="system.description" button=true owner=owner editable=editable}} {{editor description target="system.description" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
{{#if isGM}} {{#if isGM}}
<div class="flexcol"> <div class="flexcol">
<span><label>Description (MJ seulement): </label></span> <span><label>Description (MJ seulement): </label></span>
<div class="form-group editor"> <div class="form-group large-editor">
{{editor descriptionmj target="system.descriptionmj" button=true owner=owner editable=editable}} {{editor descriptionmj target="system.descriptionmj" button=true owner=owner editable=true engine="prosemirror"}}
</div> </div>
</div> </div>
{{/if}} {{/if}}