add more stories

This commit is contained in:
Gauthier Roebroeck 2026-01-15 15:52:18 +08:00
parent a84ee55ccf
commit be735135cf

View file

@ -31,6 +31,13 @@ const meta = {
onClickQuickAction: fn(),
preSelect: false,
selected: false,
stretchPoster: true,
},
argTypes: {
posterUrl: {
options: [seriesThumbnailUrl('id'), seriesThumbnailUrl('idL')],
control: { type: 'radio' },
},
},
} satisfies Meta<typeof ItemCard>
@ -85,6 +92,22 @@ export const TopRightIcon: Story = {
},
}
export const LandscapeStretched: Story = {
args: {
topRightIcon: 'i-mdi:check',
posterUrl: seriesThumbnailUrl('idL'),
stretchPoster: true,
},
}
export const LandscapeNotStretched: Story = {
args: {
topRightIcon: 'i-mdi:check',
posterUrl: seriesThumbnailUrl('idL'),
stretchPoster: false,
},
}
export const QuickActionIcon: Story = {
args: {
quickActionIcon: 'i-mdi:pencil',