Skip to content

Commit

Permalink
chore: display value and unit of types in the tag directly
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Oct 10, 2024
1 parent 43f010d commit 7a6c035
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/types-popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ const currentMode = computed(() => {
<Button variant="outline" class="max-w-48">
<span class="overflow-hidden text-ellipsis">
{{ type.label }}
<span v-if="type.value && type.unit" class="ml-1 text-muted-foreground">
{{ type.value }} <span> {{ type.unit }}</span>
</span>
<span class="sr-only">{{ t("Global.ShowMore") }}</span>
</span>
</Button>
Expand Down Expand Up @@ -133,10 +136,6 @@ const currentMode = computed(() => {
</BreadcrumbList>
</Breadcrumb>
<p>{{ type.descriptions }}</p>

<p v-if="type.value && type.unit" class="mt-2">
{{ type.value }} <span class="text-muted-foreground"> {{ type.unit }}</span>
</p>
</PopoverContent>
</Popover>
</template>

0 comments on commit 7a6c035

Please sign in to comment.