Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions web/src/components/atomic/Badge.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<template>
<span class="inline-flex items-center text-xs font-medium">
<span
v-if="label !== undefined"
class="border-wp-state-neutral-100 bg-wp-state-neutral-100 rounded-l-full border-1 py-0.5 pr-1 pl-2 whitespace-nowrap text-white"
v-if="label"
class="border-wp-state-neutral-100 bg-wp-state-neutral-100 rounded-l-full border-1 py-0.5 pl-2 whitespace-nowrap text-white"
:class="{
'rounded-r-full pr-2': !value,
}"
>
{{ label }}
</span>
<span
v-if="value"
class="border-wp-state-neutral-100 rounded-r-full border-1 py-0.5 pr-2 pl-1 whitespace-nowrap"
:class="{
'rounded-l-full pl-2': label === undefined,
'rounded-l-full pl-2': !label,
}"
>
{{ value }}
Expand All @@ -20,6 +24,6 @@
<script lang="ts" setup>
defineProps<{
label?: string;
value: string | number;
value?: string | number;
}>();
</script>