From 8061534107e9be6b2925b1104dfc4dbe41223548 Mon Sep 17 00:00:00 2001
From: Vincent Vandemeulebrouck
Date: Wed, 23 Jun 2021 11:05:38 +0200
Subject: [PATCH] Limiter les descriptions dans le tchat
Elles sont disponibles en overflow
---
module/rdd-utility.js | 2 +-
styles/simple.css | 4 +++-
templates/chat-achat-item.html | 2 +-
templates/{chat-poesie.html => chat-description.html} | 4 ++--
templates/chat-resultat-chant.html | 2 +-
templates/chat-resultat-danse.html | 2 +-
templates/chat-resultat-jeu.html | 2 +-
templates/chat-resultat-musique.html | 2 +-
templates/chat-resultat-oeuvre.html | 2 +-
templates/chat-resultat-recettecuisine.html | 2 +-
templates/chat-resultat-sort.html | 4 ++--
templates/chat-vente-item.html | 2 +-
12 files changed, 16 insertions(+), 14 deletions(-)
rename templates/{chat-poesie.html => chat-description.html} (82%)
diff --git a/module/rdd-utility.js b/module/rdd-utility.js
index 1335b4af..eb977d14 100644
--- a/module/rdd-utility.js
+++ b/module/rdd-utility.js
@@ -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',
diff --git a/styles/simple.css b/styles/simple.css
index 951bb8ba..ff9b32a0 100644
--- a/styles/simple.css
+++ b/styles/simple.css
@@ -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{
diff --git a/templates/chat-achat-item.html b/templates/chat-achat-item.html
index a9d726ad..9b0540ed 100644
--- a/templates/chat-achat-item.html
+++ b/templates/chat-achat-item.html
@@ -6,4 +6,4 @@
{{#if vendeur}}à {{vendeur.name}}{{/if}}:
{{quantiteTotal}} {{item.name}} pour {{prixTotal}} sols.
-{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" item.data}}
+{{> "systems/foundryvtt-reve-de-dragon/templates/chat-description.html" item.data}}
diff --git a/templates/chat-poesie.html b/templates/chat-description.html
similarity index 82%
rename from templates/chat-poesie.html
rename to templates/chat-description.html
index dd1c9308..268feb35 100644
--- a/templates/chat-poesie.html
+++ b/templates/chat-description.html
@@ -1,11 +1,11 @@
{{#if description}}
-
-