Merge pull request 'hide custom categories list when empty' (#183) from feature/issue182 into develop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Reviewed-on: #183
This commit is contained in:
Simon Vieille 2022-12-02 12:23:18 +01:00
commit f42cb368db
3 changed files with 12 additions and 2 deletions

View file

@ -137,6 +137,10 @@
padding-right: 20px; padding-right: 20px;
} }
.side-menu-setting-label--top {
vertical-align: top;
}
.side-menu-setting-form { .side-menu-setting-form {
display: table-cell; display: table-cell;
min-width: 300px; min-width: 300px;

View file

@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<template> <template>
<div> <div>
<ul class="side-menu-setting-list"> <ul class="side-menu-setting-list" :class="{hide: values.length === 0}">
<li v-for="item in values" class="side-menu-setting-list-item" v-on:click="showEditForm(item)"> <li v-for="item in values" class="side-menu-setting-list-item" v-on:click="showEditForm(item)">
<span v-text="item.en"></span> <span v-text="item.en"></span>
</li> </li>
@ -77,6 +77,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} }
</style> </style>
<style scoped>
.hide {
display: none;
}
</style>
<script> <script>
import NcModal from '@nextcloud/vue/dist/Components/NcModal' import NcModal from '@nextcloud/vue/dist/Components/NcModal'
import NcActions from '@nextcloud/vue/dist/Components/NcActions' import NcActions from '@nextcloud/vue/dist/Components/NcActions'

View file

@ -951,7 +951,7 @@ $labelReset = 'Reset to default';
</div> </div>
<div class="side-menu-setting-row"> <div class="side-menu-setting-row">
<div class="side-menu-setting-label"> <div class="side-menu-setting-label side-menu-setting-label--top">
<?php p($l->t('Custom categories')); ?> <?php p($l->t('Custom categories')); ?>
</div> </div>
<div class="side-menu-setting-form"> <div class="side-menu-setting-form">