Limiter les descriptions dans le tchat
Elles sont disponibles en overflow
This commit is contained in:
parent
5f4bb2fac5
commit
8061534107
@ -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',
|
||||
|
@ -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{
|
||||
|
@ -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}}
|
||||
|
@ -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">
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -24,6 +24,6 @@
|
||||
</span>
|
||||
</div>
|
||||
<hr>
|
||||
<span class="poesie-extrait">
|
||||
<div class="poesie-extrait poesie-overflow">
|
||||
{{{selectedSort.data.description}}}
|
||||
</span>
|
||||
</div>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user