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',
|
'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',
|
||||||
|
@ -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{
|
||||||
|
@ -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}}
|
||||||
|
@ -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">
|
@ -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}}
|
||||||
|
@ -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}}
|
||||||
|
@ -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}}
|
||||||
|
@ -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}}
|
||||||
|
@ -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}}
|
||||||
|
@ -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}}
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user