position of the release card chips

This commit is contained in:
Gauthier Roebroeck 2025-07-29 14:32:57 +08:00
parent 714c53b293
commit 4c43a98665
2 changed files with 32 additions and 34 deletions

View file

@ -8,4 +8,4 @@ import * as Stories from './Card.stories';
A card showing the details of a Komga release.
<Canvas of={Stories.Default} />
<Canvas of={Stories.LatestAndCurrent} />

View file

@ -1,44 +1,42 @@
<template>
<v-card>
<template #title>
<div>
<span class="d-inline-flex ga-2 align-center">
<a
:href="release.url"
target="_blank"
class="text-h4 font-weight-medium link-underline me-2"
class="text-h4 font-weight-medium link-underline"
>{{ release.version }}</a
>
<span class="d-inline-flex mt-n3 ga-2 ms-2">
<v-chip
v-if="current"
size="small"
rounded
color="info"
>
{{
$formatMessage({
description:
'Updates view: badge showing next to the currently installed release number',
defaultMessage: 'Installed',
id: 'WADecv',
})
}}
</v-chip>
<v-chip
v-if="latest"
size="small"
rounded
>
{{
$formatMessage({
description: 'Updates view: badge showing next to the latest release number',
defaultMessage: 'Latest',
id: '2Bh8F2',
})
}}
</v-chip>
</span>
</div>
<v-chip
v-if="current"
size="small"
rounded
color="info"
>
{{
$formatMessage({
description:
'Updates view: badge showing next to the currently installed release number',
defaultMessage: 'Installed',
id: 'WADecv',
})
}}
</v-chip>
<v-chip
v-if="latest"
size="small"
rounded
>
{{
$formatMessage({
description: 'Updates view: badge showing next to the latest release number',
defaultMessage: 'Latest',
id: '2Bh8F2',
})
}}
</v-chip>
</span>
</template>
<template #subtitle>