Skip to content

Commit

Permalink
Gallery styling changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Mar 7, 2024
1 parent 9d26571 commit 46953a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .storybook/stories/paragraphs/Gallery.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ export const Gallery: Story = {
suGalleryButton: {
url:"/about",
title:"Link text",
internal:true
},
suGalleryDescription: {
processed: "<p>this is a description</p>"
processed: "<p>Please enter the description here. </p>"
},
suGalleryHeadline:"New Gallery",
suGalleryImages: [
{
suGalleryCaption:"Very big spider",
id: "c9bfa54a-7a54-4892-b3e5-72a1423fb221",
suGalleryCaption:"This is a caption",
suGalleryImage: getStoryBookImage(),
},
{
suGalleryCaption:"Poppies poppies my dear.",
id: "6906300d-cd67-41cf-b5bb-165f839bdf1b",
suGalleryCaption:"This is a caption",
suGalleryImage: getStoryBookImage(),
}
]

}
}
};
2 changes: 1 addition & 1 deletion src/components/elements/wysiwyg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const options: HTMLReactParserOptions = {
return cleanMediaMarkup(domNode);

case 'p':
nodeProps.className = twMerge(nodeProps.className, 'max-w-[100ch]');
nodeProps.className = twMerge(nodeProps.className, 'max-w-[100ch] leading-relaxed');
return <NodeName {...nodeProps}>{domToReact(children, options)}</NodeName>

case 'script':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const GalleryParagraph = ({paragraph, ...props}: Props) => {
{...props}
>
{paragraph.suGalleryHeadline &&
<H2 id={paragraph.id}>{paragraph.suGalleryHeadline}</H2>
<H2 id={paragraph.id} className="text-center">{paragraph.suGalleryHeadline}</H2>
}

<Wysiwyg html={paragraph.suGalleryDescription?.processed}/>
Expand Down

0 comments on commit 46953a2

Please sign in to comment.