diff --git a/web/src/beta/lib/core/StoryPanel/Block/builtin/Title/index.tsx b/web/src/beta/lib/core/StoryPanel/Block/builtin/Title/index.tsx index 1175f0554d..06ee6a37c3 100644 --- a/web/src/beta/lib/core/StoryPanel/Block/builtin/Title/index.tsx +++ b/web/src/beta/lib/core/StoryPanel/Block/builtin/Title/index.tsx @@ -14,7 +14,12 @@ export type Props = BlockProps; const TitleBlock: React.FC = ({ block, isSelected, ...props }) => { const t = useT(); - const property = useMemo(() => block?.property, [block?.property]); + const property = useMemo(() => { + return { + ...block?.property, + panel: { padding: block?.property?.title?.padding }, + }; + }, [block?.property]); const title = useMemo( () => property?.title?.title?.value as ValueTypes["string"],