[WIP] multiple fixes (#8916)

* change quest banner backgrond

* itemRows in inventory

* use itemRows in inventory/items - showLess/showMore as default labels - extend white space if theres no button available

* hide popover if dragging is active - show dragging info on first click (without to move)

* use itemRows in inventory/stable

* fix some strings

* highlight currently dragging item in inventory/items - auto attach info on click - z-index

* fix shopItem label color

* fix floating npcs in banner

* hatched-pet-dialog in items / stable

* change all ctx to context
This commit is contained in:
negue
2017-08-08 03:04:46 +02:00
committed by Keith Holliday
parent 0b076311df
commit a380090013
16 changed files with 415 additions and 251 deletions

View File

@@ -7,13 +7,24 @@
:item="item",
)
div(v-if="items.length === 0")
p(v-once) {{ noItemsLabel }}
.btn.btn-show-more(
@click="showAll = !showAll",
v-if="items.length > itemsPerRow()"
) {{ showAll ? showLessLabel : showAllLabel }}
) {{ showAll ? $t('showLess') : $t('showMore') }}
div.fill-height(v-else)
</template>
<style lang="scss" scoped>
.fill-height {
height: 38px; // button + margin + padding
}
</style>
<script>
import ResizeDirective from 'client/directives/resize.directive';
@@ -60,10 +71,7 @@
itemMargin: {
type: Number,
},
showAllLabel: {
type: String,
},
showLessLabel: {
noItemsLabel: {
type: String,
},
},