Skip to content

Commit

Permalink
fix: lint + add root elements to text components
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Aug 9, 2024
1 parent f93d309 commit 05d9328
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Display/DisplayBoolean.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ const isTruthy = computed(() => {
</script>

<template>
{{ isTruthy ? $t('displayBoolean.yes') : $t('displayBoolean.no') }}
<span>{{ isTruthy ? $t('displayBoolean.yes') : $t('displayBoolean.no') }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayContentLength.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ defineProps({
</script>

<template>
{{ humanSize(value, false, $tm('human.size')) }}
<span>{{ humanSize(value, false, $tm('human.size')) }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayContentType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const label = computed(() => {
</script>

<template>
{{ label }}
<span>{{ label }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayExtractionLevel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const translationKey = computed(() => {
</script>

<template>
{{ $t(translationKey) }}
<span>{{ $t(translationKey) }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayLanguage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const translationKey = computed(() => {
</script>

<template>
{{ $t(translationKey) }}
<span>{{ $t(translationKey) }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ const roundedValue = computed(() => {
</script>

<template>
{{ $n(roundedValue) }}
<span>{{ $n(roundedValue) }}</span>
</template>
2 changes: 1 addition & 1 deletion src/components/Display/DisplayNumberHuman.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ const humanValue = computed(() => {
</script>

<template>
{{ humanValue }}
<span>{{ humanValue }}</span>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ const emit = defineEmits([
</script>

<template>
<form-actions variant="outline-dark" class="justify-content-start flex-nowrap flex-md-wrap flex-truncate" compact-auto>
<form-actions
variant="outline-dark"
class="justify-content-start flex-nowrap flex-md-wrap flex-truncate"
compact-auto
>
<template #start="{ isCompact }">
<search-results-actions-select-all
class="me-auto me-md-0"
Expand Down

0 comments on commit 05d9328

Please sign in to comment.