Affichage des images de tarot

This commit is contained in:
Vincent Vandemeulebrouck 2022-11-28 10:07:04 +01:00
parent c06491eb2f
commit 39c6478422
2 changed files with 33 additions and 18 deletions

View File

@ -332,6 +332,16 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) {
object-fit: cover; object-fit: cover;
object-position: 50% 0; object-position: 50% 0;
} }
.foundryvtt-reve-de-dragon .rdd-item-sheet-tarot img.profile-img {
max-height: 600px;
max-width: 200px;
width: max-content;
margin-right: 0px;
object-fit: scale-down;
border: none;
margin-right: 5px;
object-position: 50% 0;
}
.rdd-dialog-select-target img.select-token-img { .rdd-dialog-select-target img.select-token-img {
-webkit-box-flex: 0; -webkit-box-flex: 0;
-ms-flex: 0 0 48px; -ms-flex: 0 0 48px;

View File

@ -1,22 +1,27 @@
<form class="{{cssClass}}" autocomplete="off"> <form class="rdd-item-sheet-tarot" autocomplete="off">
{{>"systems/foundryvtt-reve-de-dragon/templates/header-item.html"}} <header class="sheet-header">
{{!-- Sheet Body --}} <div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
<section class="sheet-body"> <section class="sheet-body">
<div class="flexcol"> <div class="flexrow">
<div class="form-group"> <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<label>Aspect</label> <div class="flexcol">
<input class="attribute-value" type="text" name="system.concept" value="{{system.concept}}" data-dtype="String" /> <div class="form-group">
<label>Aspect</label>
<input class="attribute-value" type="text" name="system.concept" value="{{system.concept}}" data-dtype="String" />
</div>
<div class="form-group">
<label>Sens</label>
<select name="system.aspect" id="aspect" data-dtype="String">
{{#select system.aspect}}
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html"}}
{{/select}}
</select>
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-frequence.html"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.html"}}
</div> </div>
<div class="form-group">
<label>Sens</label>
<select name="system.aspect" id="aspect" data-dtype="String">
{{#select system.aspect}}
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html"}}
{{/select}}
</select>
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-frequence.html"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.html"}}
</section> </section>
</form> </form>