diff options
Diffstat (limited to 'viewer/src/components/LdCommandSort.vue')
-rw-r--r-- | viewer/src/components/LdCommandSort.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/viewer/src/components/LdCommandSort.vue b/viewer/src/components/LdCommandSort.vue index cfaa5c1..c8a822e 100644 --- a/viewer/src/components/LdCommandSort.vue +++ b/viewer/src/components/LdCommandSort.vue | |||
@@ -19,8 +19,9 @@ | |||
19 | --> | 19 | --> |
20 | 20 | ||
21 | <template> | 21 | <template> |
22 | <b-dropdown v-model="selectedSort" :mobile-modal="false" append-to-body> | 22 | <!-- TODO: Find an alternative to this Buefy component; it causes focus and CSS issues --> |
23 | <a slot="trigger" class="link"> | 23 | <b-dropdown v-model="selectedSort" :mobile-modal="false" append-to-body class="link" :class="$style.sortBtn"> |
24 | <a slot="trigger"> | ||
24 | <fa-icon icon="sort-amount-down" size="lg" /> | 25 | <fa-icon icon="sort-amount-down" size="lg" /> |
25 | </a> | 26 | </a> |
26 | <b-dropdown-item v-for="(sort, idx) in ITEM_SORTS" :key="idx" :value="sort"> | 27 | <b-dropdown-item v-for="(sort, idx) in ITEM_SORTS" :key="idx" :value="sort"> |
@@ -31,8 +32,8 @@ | |||
31 | </template> | 32 | </template> |
32 | 33 | ||
33 | <script lang="ts"> | 34 | <script lang="ts"> |
34 | import { Component, Vue, Prop } from "vue-property-decorator"; | ||
35 | import ItemComparators, { ItemSort } from "@/services/itemComparators"; | 35 | import ItemComparators, { ItemSort } from "@/services/itemComparators"; |
36 | import { Component, Vue } from "vue-property-decorator"; | ||
36 | 37 | ||
37 | @Component | 38 | @Component |
38 | export default class LdCommandSort extends Vue { | 39 | export default class LdCommandSort extends Vue { |
@@ -52,4 +53,8 @@ export default class LdCommandSort extends Vue { | |||
52 | .dropdownLabel { | 53 | .dropdownLabel { |
53 | margin-left: 0.5em; | 54 | margin-left: 0.5em; |
54 | } | 55 | } |
56 | .sortBtn > div[role="button"] { | ||
57 | width: 100%; | ||
58 | height: 100%; | ||
59 | } | ||
55 | </style> | 60 | </style> |