Replaced moving description in items by a big popup on hover.

This commit is contained in:
Vlyan
2021-06-23 09:20:34 +02:00
parent 30a6d96014
commit 08a3d2cceb
37 changed files with 508 additions and 162 deletions

View File

@@ -1,7 +1,7 @@
<li class="item technique flexcol toggle-on-click" data-toggle="item-description-{{technique._id}}" data-item-id="{{technique._id}}">
<li class="item technique flexcol" data-item-id="{{technique._id}}">
<ul class="item-header technique-controls">
<li class="item-img"><img src="{{technique.img}}" title="{{technique.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{technique.name}}</li>
<li class="item-name l5r5e-tooltip" data-item-id="{{technique._id}}" {{#if technique.data.parent_id.item_id}}data-item-parent-id="{{technique.data.parent_id.item_id}}"{{/if}}>{{technique.name}}</li>
{{#if editable}}
<li data-item-id="{{technique._id}}" {{#if technique.data.parent_id.item_id}}data-item-parent-id="{{technique.data.parent_id.item_id}}"{{/if}} class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
{{^if technique.data.parent_id.item_id}}
@@ -9,7 +9,4 @@
{{/if}}
{{/if}}
</ul>
{{#if technique.data.description}}
<div class="item-description item-description-{{technique._id}}">{{{technique.data.description}}}</div>
{{/if}}
</li>

View File

@@ -23,22 +23,22 @@
</select>
<label class="cursus attribute-value checkbox">
<input type="checkbox" name="data.in_curriculum" {{checked data.data.in_curriculum}} />
{{ localize 'l5r5e.advancements.curriculum' }}
{{localize 'l5r5e.advancements.curriculum'}}
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.cost' }}
{{localize 'l5r5e.advancements.cost'}}
<input class="select-on-focus" type="number" name="data.xp_cost" value="{{data.data.xp_cost}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.spent' }}
{{localize 'l5r5e.advancements.spent'}}
<input class="select-on-focus" type="number" name="data.xp_used" value="{{data.data.xp_used}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.rank' }}
{{localize 'l5r5e.rank'}}
<input class="select-on-focus" type="number" name="data.rank" value="{{data.data.rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.bought_at_rank' }}
{{localize 'l5r5e.bought_at_rank'}}
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{data.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</article>

View File

@@ -0,0 +1,27 @@
<div class="{{cssClass}}" data-actor-id="{{actor.data._id}}" data-item-id="{{data.data._id}}">
<header class="card-header flexrow">
<img src="{{data.img}}" title="{{data.name}}" width="36" height="36"/>
<h3 class="item-name">{{data.name}}</h3>
</header>
<section class="sheet-body">
{{localize 'l5r5e.rings.title'}} : {{localizeRing data.data.ring}}
<br>
{{localize 'l5r5e.types'}} : {{localizeTechnique data.data.technique_type}}
<br>
{{localize 'l5r5e.advancements.curriculum'}} : {{#if data.data.in_curriculum}}{{localize 'Yes'}}{{else}}{{localize 'No'}}{{/if}}
<br>
{{localize 'l5r5e.advancements.cost'}} : {{data.data.xp_cost}}
<br>
{{localize 'l5r5e.advancements.spent'}} : {{data.data.xp_used}}
<br>
{{localize 'l5r5e.rank'}} : {{data.data.rank}}
<br>
{{localize 'l5r5e.bought_at_rank'}} : {{data.data.bought_at_rank}}
{{!--item-infos--}}
<br>
{{localize 'l5r5e.description'}} : {{{data.data.description}}}
<br>
{{localize 'l5r5e.book_reference'}} : {{data.data.book_reference}}
</section>
</div>