mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Inventory: fixes / layout (#11948)
Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
@@ -17,13 +17,11 @@
|
||||
{{ noItemsLabel }}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
<show-more-button
|
||||
v-if="items.length > itemsPerRow"
|
||||
class="btn btn-flat btn-show-more"
|
||||
@click="toggleItemsToShow()"
|
||||
>
|
||||
{{ showAll ? $t('showLess') : $t('showMore') }}
|
||||
</div>
|
||||
:show-all="showAll"
|
||||
/>
|
||||
<div
|
||||
v-else
|
||||
class="fill-height"
|
||||
@@ -32,12 +30,14 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '~@/assets/scss/colors.scss';
|
||||
|
||||
.fill-height {
|
||||
height: 38px; // button + margin + padding
|
||||
}
|
||||
|
||||
.item-rows {
|
||||
margin-right: -24px;
|
||||
margin-right: -1.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -45,9 +45,11 @@
|
||||
import _take from 'lodash/take';
|
||||
import ResizeDirective from '@/directives/resize.directive';
|
||||
import openedItemRowsMixin from '@/mixins/openedItemRows';
|
||||
import ShowMoreButton from '@/components/ui/showMoreButton';
|
||||
|
||||
|
||||
export default {
|
||||
components: { ShowMoreButton },
|
||||
directives: {
|
||||
resize: ResizeDirective,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user