style(Account Tag List): Add a float left to better manage a category
This commit is contained in:
@@ -2,19 +2,12 @@
|
||||
<div class="tag-list columns is-multiline is-centered">
|
||||
<div class="column legend-container">
|
||||
<table class="table">
|
||||
<tr
|
||||
v-for="(slice, k) in slices"
|
||||
:key="k"
|
||||
:style="legendStyle(slice)"
|
||||
class="legend-item"
|
||||
>
|
||||
<tr v-for="(slice, k) in slices" :key="k" :style="legendStyle(slice)" class="legend-item">
|
||||
<td>
|
||||
<awe-icon :icon="categories[slice.key].tag.icon" />
|
||||
</td>
|
||||
<td class="legend-label">{{ slice.label }}</td>
|
||||
<td class="percent-label numeric">
|
||||
{{ Math.round(slice.percent * 100) }}%
|
||||
</td>
|
||||
<td class="percent-label numeric">{{ Math.round(slice.percent * 100) }}%</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -34,21 +27,19 @@
|
||||
<div class="select is-fullwidth">
|
||||
<select v-model="filterCategory">
|
||||
<option value>Toutes</option>
|
||||
<option v-for="(category, k) in categories" :key="k" :value="k">{{
|
||||
<option v-for="(category, k) in categories" :key="k" :value="k">
|
||||
{{
|
||||
category.tag.label
|
||||
}}</option>
|
||||
}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="columns is-multiline"
|
||||
:class="{ 'is-centered': !!filterCategory }"
|
||||
>
|
||||
<div
|
||||
v-for="(category, k) in filteredCategories"
|
||||
:key="k"
|
||||
class="column is-half"
|
||||
class="category-list-container column is-half"
|
||||
>
|
||||
<div class="columns category-list">
|
||||
<div class="column is-2 tag-element account-color">
|
||||
@@ -56,10 +47,7 @@
|
||||
<awe-icon :icon="category.tag.icon" />
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="column transaction-list"
|
||||
v-if="category.transactions.length"
|
||||
>
|
||||
<div class="column transaction-list" v-if="category.transactions.length">
|
||||
<p>
|
||||
{{
|
||||
$tc('account.total', category.transactions.length, {
|
||||
@@ -79,7 +67,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -209,4 +196,7 @@ export default class TagList extends Vue {
|
||||
.percent-label {
|
||||
text-align: right;
|
||||
}
|
||||
.category-list-container {
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user