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',
// messages tchat
'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-demande-defense.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 {
color: rgba(82, 17, 131, 0.9);
max-height: 2.5rem;
max-height: 1.5rem;
overflow: hidden;
border-left: 1px dotted black; /* If you want dots under the hoverable text */
}
.poesie-overflow:hover {
max-height: unset;
overflow: visible;
border-left: 0px
}
.type-compendium{

View File

@ -6,4 +6,4 @@
{{#if vendeur}}à {{vendeur.name}}{{/if}}:
{{quantiteTotal}} {{item.name}} pour {{prixTotal}} sols.
</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}}
<hr>
<span class="poesie-extrait">
<div class="poesie-extrait poesie-overflow">
{{{description}}}
{{#if reference}}
<p class="poesie-reference">{{reference}}</p>
{{/if}}
</span>
</div>
{{else if reference}}
<hr>
<span class="poesie-extrait">

View File

@ -12,4 +12,4 @@
{{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</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}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</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}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</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}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</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}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html"}}
</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}}
</span>
{{> "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>
</div>
<hr>
<span class="poesie-extrait">
<div class="poesie-extrait poesie-overflow">
{{{selectedSort.data.description}}}
</span>
</div>

View File

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