Limiter les descriptions dans le tchat

Elles sont disponibles en overflow
This commit is contained in:
Vincent Vandemeulebrouck 2021-06-23 11:05:38 +02:00
parent 5f4bb2fac5
commit 8061534107
12 changed files with 16 additions and 14 deletions

View File

@ -190,7 +190,7 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html', 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html',
// messages tchat // messages tchat
'systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-description.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-demande-defense.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-demande-defense.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-demande-attaque-particuliere.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-demande-attaque-particuliere.html',

View File

@ -522,12 +522,14 @@ table {border: 1px solid #7a7971;}
} }
.poesie-overflow { .poesie-overflow {
color: rgba(82, 17, 131, 0.9); color: rgba(82, 17, 131, 0.9);
max-height: 2.5rem; max-height: 1.5rem;
overflow: hidden; overflow: hidden;
border-left: 1px dotted black; /* If you want dots under the hoverable text */
} }
.poesie-overflow:hover { .poesie-overflow:hover {
max-height: unset; max-height: unset;
overflow: visible; overflow: visible;
border-left: 0px
} }
.type-compendium{ .type-compendium{

View File

@ -6,4 +6,4 @@
{{#if vendeur}}à {{vendeur.name}}{{/if}}: {{#if vendeur}}à {{vendeur.name}}{{/if}}:
{{quantiteTotal}} {{item.name}} pour {{prixTotal}} sols. {{quantiteTotal}} {{item.name}} pour {{prixTotal}} sols.
</p> </p>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" item.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" item.data}}

View File

@ -1,11 +1,11 @@
{{#if description}} {{#if description}}
<hr> <hr>
<span class="poesie-extrait"> <div class="poesie-extrait poesie-overflow">
{{{description}}} {{{description}}}
{{#if reference}} {{#if reference}}
<p class="poesie-reference">{{reference}}</p> <p class="poesie-reference">{{reference}}</p>
{{/if}} {{/if}}
</span> </div>
{{else if reference}} {{else if reference}}
<hr> <hr>
<span class="poesie-extrait"> <span class="poesie-extrait">

View File

@ -12,4 +12,4 @@
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -12,4 +12,4 @@
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -12,4 +12,4 @@
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -12,4 +12,4 @@
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -13,4 +13,4 @@
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</div> </div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -21,4 +21,4 @@
{{/if}} {{/if}}
</span> </span>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" oeuvre.data}}

View File

@ -24,6 +24,6 @@
</span> </span>
</div> </div>
<hr> <hr>
<span class="poesie-extrait"> <div class="poesie-extrait poesie-overflow">
{{{selectedSort.data.description}}} {{{selectedSort.data.description}}}
</span> </div>

View File

@ -3,7 +3,7 @@
{{#if item.img}} {{#if item.img}}
<img src="{{item.img}}" title="{{item.name}}" /> <img src="{{item.img}}" title="{{item.name}}" />
{{/if}} {{/if}}
<p class="card-content">{{{item.data.description}}}</p> <div class="poesie-extrait poesie-overflow card-content">{{{item.data.description}}}</div>
<p> <p>
{{#each properties as |property p|}} {{#each properties as |property p|}}
<span>{{{property}}}</span><br> <span>{{{property}}}</span><br>