diff options
author | OzoneGrif | 2020-04-04 02:36:03 +0200 |
---|---|---|
committer | GitHub | 2020-04-04 02:36:03 +0200 |
commit | c26ab69997d1d552fda72b8fd88d5910fc91b779 (patch) | |
tree | aea8a7801c1445e71d966ca3a0532200abf2c724 /viewer/src/views | |
parent | 332b208d3fdc91d29181c8f42ef5ff9b1fd1f09a (diff) | |
parent | 84090e0f534cfa8bf601ae6df21e5df695fd149a (diff) | |
download | ldgallery-c26ab69997d1d552fda72b8fd88d5910fc91b779.tar.gz |
Merge pull request #172 from pacien/tag-categories
Feature: tag categories
Diffstat (limited to 'viewer/src/views')
-rw-r--r-- | viewer/src/views/PanelLeft.vue | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue index 1b3f90b..0fe0164 100644 --- a/viewer/src/views/PanelLeft.vue +++ b/viewer/src/views/PanelLeft.vue | |||
@@ -26,12 +26,17 @@ | |||
26 | /> | 26 | /> |
27 | <ld-command-search @clear="clear" @search="search" /> | 27 | <ld-command-search @clear="clear" @search="search" /> |
28 | <h1 class="title">{{$t('panelLeft.propositions')}}</h1> | 28 | <h1 class="title">{{$t('panelLeft.propositions')}}</h1> |
29 | <ld-proposition | 29 | <div v-dragscroll class="scrollbar no-scroll-x"> |
30 | :search-filters.sync="searchFilters" | 30 | <ld-proposition |
31 | :tags-index="$galleryStore.tagsIndex" | 31 | v-for="(category) in $galleryStore.tagsCategories" |
32 | :current-tags="currentTags()" | 32 | :key="category.tag" |
33 | class="scrollbar no-scroll-x" | 33 | :category="$galleryStore.tagsIndex[category.tag]" |
34 | /> | 34 | :show-category="$galleryStore.tagsCategories.length > 1" |
35 | :search-filters.sync="searchFilters" | ||
36 | :tags-index="category.index" | ||
37 | :current-tags="currentTags()" | ||
38 | /> | ||
39 | </div> | ||
35 | </div> | 40 | </div> |
36 | </template> | 41 | </template> |
37 | 42 | ||
@@ -80,9 +85,14 @@ export default class PanelLeft extends Vue { | |||
80 | </script> | 85 | </script> |
81 | 86 | ||
82 | <style lang="scss"> | 87 | <style lang="scss"> |
88 | @import "@/assets/scss/theme.scss"; | ||
89 | |||
83 | .sidebar { | 90 | .sidebar { |
84 | .title { | 91 | .title { |
85 | margin: 0.2em 0.5em !important; | 92 | background-color: $proposed-category-bgcolor; |
93 | padding: 0.2em 0.5em; | ||
94 | margin: 0 0 1px 0; | ||
95 | font-variant: small-caps; | ||
86 | } | 96 | } |
87 | } | 97 | } |
88 | </style> | 98 | </style> |