From 460ec09d56cae0de2964cbb4d73fbcfaabdba5a8 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Fri, 18 Oct 2024 10:27:15 +0200 Subject: [PATCH] :memo: - docs: further improvements to Kanban(Template) stories --- src/components/data/kanban/kanban.stories.tsx | 3 ++- src/templates/kanban/kanban.stories.tsx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/data/kanban/kanban.stories.tsx b/src/components/data/kanban/kanban.stories.tsx index 740f8da..9604d45 100644 --- a/src/components/data/kanban/kanban.stories.tsx +++ b/src/components/data/kanban/kanban.stories.tsx @@ -66,7 +66,7 @@ export const AdditionalFields: Story = { }, }; -export const WithCustomPreview: Story = { +export const CustomPreview: Story = { ...KanbanComponent, // @ts-expect-error - Fix never args: { @@ -76,6 +76,7 @@ export const WithCustomPreview: Story = { alt={attributeData.title} src="/static/maykin_logo.png" height="24" + style={{ objectFit: "contain" }} /> ), }, diff --git a/src/templates/kanban/kanban.stories.tsx b/src/templates/kanban/kanban.stories.tsx index 03475e2..899fae2 100644 --- a/src/templates/kanban/kanban.stories.tsx +++ b/src/templates/kanban/kanban.stories.tsx @@ -3,9 +3,9 @@ import * as React from "react"; import { Badge, Outline } from "../../components"; import { + CustomPreview as CustomPreviewComponentStory, Draggable as DraggableComponentStory, KanbanComponent as KanbanComponentStory, - WithCustomPreview as WithCustomPreviewComponentStory, WithToolbar as WithToolbarComponentStory, } from "../../components/data/kanban/kanban.stories"; import { KanbanTemplate } from "./kanban"; @@ -120,11 +120,11 @@ export const WithSecondaryNavigation: Story = { }, }; -export const WithCustomPreview: Story = { +export const CustomPreview: Story = { ...kanbanTemplate, args: { ...kanbanTemplate.args, - kanbanProps: WithCustomPreviewComponentStory.args, + kanbanProps: CustomPreviewComponentStory.args, }, };