From 5b48fda3d044f903ca6c3c334077fac3f6ba9383 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Mon, 9 Jun 2025 20:20:06 +0200 Subject: [PATCH] Correction d'affichages lignes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correction de plusieurs cas d'affichage en lignes qui étaient formatés sur plusieurs lignes - noms dans liste d'objets (et bouton des conteneurs) - compétences de créatures sur une ligne - acteur sur une ligne dans l'astrologie - résultat de recherche --- changelog.md | 5 +++++ css/foundryvtt-reve-de-dragon.css | 15 ++++++++++++--- less/foundryvtt-reve-de-dragon.less | 15 ++++++++++++--- templates/actor/commerce-inventaire-item.hbs | 2 +- templates/actor/inventaire-item.hbs | 2 +- templates/sommeil/astrologie-gardien.hbs | 5 +++-- 6 files changed, 34 insertions(+), 10 deletions(-) diff --git a/changelog.md b/changelog.md index 1ecb804d..5a29a792 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,11 @@ - On peut de nouveau acheter aux commerces - La description des Grizzal a des espaces +- Corrections v13 + - Affichage des images et noms d'objets en ligne + - affichage des compétences de créature sur une ligne + - Affichage des informations d'acteur sur une ligne dans l'astrologie + - Affichage des résultat de recherche ## 13.0.0 - Le début de l'errance d'Illysis diff --git a/css/foundryvtt-reve-de-dragon.css b/css/foundryvtt-reve-de-dragon.css index 01b6f81f..41447396 100644 --- a/css/foundryvtt-reve-de-dragon.css +++ b/css/foundryvtt-reve-de-dragon.css @@ -721,6 +721,7 @@ select, margin: 0; justify-content: center; text-align: left; + display: ruby; } .system-foundryvtt-reve-de-dragon .equipement-valeur { margin: 0; @@ -740,6 +741,8 @@ select, align-items: center; justify-content: center; text-align: center; + display: flex; + flex-direction: row; } .system-foundryvtt-reve-de-dragon .equipement-button { margin: 0; @@ -1291,8 +1294,7 @@ select, white-space: nowrap; word-break: break-all; } -.system-foundryvtt-reve-de-dragon span.content-link, -.system-foundryvtt-reve-de-dragon a.content-link { +.system-foundryvtt-reve-de-dragon .content-link { background: hsla(45, 100%, 80%, 0.2); color: hsla(300, 70%, 20%, 0.8); font-weight: 560; @@ -1301,6 +1303,7 @@ select, border-radius: 0.25rem; white-space: nowrap; word-break: break-all; + display: ruby; } .system-foundryvtt-reve-de-dragon a.roll-text i.fas { color: var(--color-text-dark-inactive); @@ -1537,6 +1540,8 @@ select, .system-foundryvtt-reve-de-dragon .list-item-label, .system-foundryvtt-reve-de-dragon .list-title-label { flex-grow: 2; + display: flex; + flex-direction: row; } .system-foundryvtt-reve-de-dragon .attribut-value, .system-foundryvtt-reve-de-dragon .carac-value { @@ -1588,9 +1593,13 @@ select, .system-foundryvtt-reve-de-dragon table.table-nombres-astraux th > td { font-size: 1rem; } -.system-foundryvtt-reve-de-dragon table.table-nombres-astraux tr > td { +.system-foundryvtt-reve-de-dragon table.table-nombres-astraux tr td { font-size: 0.8rem; } +.system-foundryvtt-reve-de-dragon table.table-nombres-astraux tr td.info-acteur { + flex-direction: row; + display: flex; +} .system-foundryvtt-reve-de-dragon table.table-nombres-astraux :is(tr, th, td) { border-style: solid; border-width: 1px; diff --git a/less/foundryvtt-reve-de-dragon.less b/less/foundryvtt-reve-de-dragon.less index d9eb652b..31674dd9 100644 --- a/less/foundryvtt-reve-de-dragon.less +++ b/less/foundryvtt-reve-de-dragon.less @@ -356,6 +356,7 @@ margin: 0; justify-content: center; text-align: left; + display: ruby; } .equipement-valeur { margin: 0; @@ -375,6 +376,8 @@ align-items: center; justify-content: center; text-align: center; + display: flex; + flex-direction: row; } .equipement-button { margin: 0; @@ -962,8 +965,7 @@ word-break: break-all; } - span.content-link, - a.content-link { + .content-link { background: hsla(45, 100%, 80%, 0.2); color: hsla(300, 70%, 20%, 0.8); font-weight: 560; @@ -972,6 +974,7 @@ border-radius: 0.25rem; white-space: nowrap; word-break: break-all; + display: ruby; } a.roll-text i.fas{ color: var(--color-text-dark-inactive); @@ -1222,6 +1225,8 @@ .list-item-label, .list-title-label { flex-grow: 2; + display: flex; + flex-direction: row; } .attribut-value, .carac-value { @@ -1275,9 +1280,13 @@ table.table-nombres-astraux th >td { font-size: 1rem; } - table.table-nombres-astraux tr >td { + table.table-nombres-astraux tr td { font-size: 0.8rem; } + table.table-nombres-astraux tr td.info-acteur { + flex-direction: row; + display: flex; + } table.table-nombres-astraux :is(tr, th, td) { border-style: solid; border-width: 1px; diff --git a/templates/actor/commerce-inventaire-item.hbs b/templates/actor/commerce-inventaire-item.hbs index 7cf0f09d..31f45200 100644 --- a/templates/actor/commerce-inventaire-item.hbs +++ b/templates/actor/commerce-inventaire-item.hbs @@ -1,7 +1,7 @@ {{#unless item.system.isHidden}} {{#if (ne item.type 'monnaie')}}
  • - + {{#if (eq item.type 'conteneur')}} - + {{#if (eq item.type 'conteneur')}} - + - {{actor.name}} {{timestamp-imgSigneHeure actor.system.heure}} + {{actor.name}} + {{timestamp-imgSigneHeure actor.system.heure}} {{#each ajustementActeur.ajustements as |ajustement|}} {{#if (ne ajustement.ajustement 0)}}