Skip to content

Commit

Permalink
only show keywords on cardviewmodal when there are keywords, remove a…
Browse files Browse the repository at this point in the history
…lways empty keyword[0] entry
  • Loading branch information
patrickwieth committed Oct 30, 2024
1 parent 3c5f113 commit c80b27a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/components/elements/KeywordComponent.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<template>
<div>
<div v-if="state.keywordDescriptions.length > 1">
<p
class="font-bold text-2xl">
Used Keywords
</p>
<br>
<div
v-for="(keyword, index) in state.keywordDescriptions"
:key="index"
class="Keywords"
>
<p class="font-bold">
{{ keyword[0] }}
</p>
<p>{{ keyword[1] }}</p>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/components/modals/CardviewModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
<br>
</div>
<div>
<p class="font-bold text-2xl">
Used Keywords
</p>
<br>
<KeywordComponent :card="state.card" />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/AdvancedCardViewPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="h-screen bg-black text-white flex lg:h-[80vh] p-16 lg:p-8" />
<div class="h-screen bg-black text-white flex lg:h-[80vh] p-16 lg:p-8"/>
<CardviewModal
:id="state.id"
@close="$router.back()"
Expand Down

0 comments on commit c80b27a

Please sign in to comment.