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 bond flexcol toggle-on-click" data-toggle="item-description-{{bond.id}}" data-item-id="{{bond.id}}">
<li class="item bond flexcol" data-item-id="{{bond.id}}">
<ul class="item-header bond-controls">
<li class="item-img"><img src="{{bond.img}}" title="{{bond.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{bond.name}}</li>
<li class="item-name l5r5e-tooltip" data-item-id="{{bond.id}}">{{bond.name}}</li>
{{#if editable}}
<li data-item-id="{{bond.id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{bond.id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
@@ -12,7 +12,4 @@
<li>{{bond.data.data.bond_type}} {{bond.data.data.rank}}</li>
</ul>
{{/if}}
{{#if bond.data.data.description}}
<div class="item-description item-description-{{bond.id}}">{{{bond.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -8,23 +8,23 @@
{{!-- Attributes Tab --}}
<article class="attributes" data-group="primary" data-tab="attributes">
<label class="attribute bonds-types">
{{ localize 'l5r5e.types' }}
{{localize 'l5r5e.types'}}
<input class="select-on-focus" type="text" name="data.bond_type" value="{{data.data.bond_type}}" data-dtype="String"/>
</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,28 @@
<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.types'}} : {{data.data.bond_type}}
<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}}
{{!--properties--}}
<br>
{{localize 'l5r5e.properties'}} :
{{#each data.data.properties as |property idx|}}{{#ifCond idx '>' 0}}, {{/ifCond}}{{property.name}}{{/each}}
{{!--item-infos--}}
<br>
{{localize 'l5r5e.description'}} : {{{data.data.description}}}
<br>
{{localize 'l5r5e.book_reference'}} : {{data.data.book_reference}}
</section>
</div>