Skip to content

Commit 3d13f4b

Browse files
Merge pull request #47 from netlify-templates/tb/wrfl-1525-issue-with-content-cards
removed h-full class
2 parents 82ae5ed + 20ee1fb commit 3d13f4b

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/components/sections/FeaturedItemsSection/FeaturedItem/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default function FeaturedItem(props) {
1919
id={elementId}
2020
className={classNames(
2121
'sb-card',
22-
'h-full',
2322
colors,
2423
styles?.self?.margin ? mapStyles({ margin: styles?.self?.margin }) : undefined,
2524
styles?.self?.padding ? mapStyles({ padding: styles?.self?.padding }) : undefined,

src/components/sections/FeaturedItemsSection/FeaturedItemToggle/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default function FeaturedItemToggle(props) {
1818
id={elementId}
1919
className={classNames(
2020
'sb-card',
21-
'h-full',
2221
colors,
2322
styles?.self?.margin ? mapStyles({ margin: styles?.self?.margin }) : undefined,
2423
styles?.self?.padding ? mapStyles({ padding: styles?.self?.padding }) : undefined,
@@ -36,9 +35,9 @@ export default function FeaturedItemToggle(props) {
3635
data-sb-field-path={fieldPath}
3736
>
3837
{title && (
39-
<TitleTag className="h3 relative pr-8 cursor-pointer" onClick={() => setIsActive(!isActive)}>
38+
<TitleTag className="relative pr-8 cursor-pointer h3" onClick={() => setIsActive(!isActive)}>
4039
<span {...(fieldPath && { 'data-sb-field-path': '.title' })}>{title}</span>
41-
<span className="absolute right-0 top-1/2 -translate-y-1/2">
40+
<span className="absolute right-0 -translate-y-1/2 top-1/2">
4241
<PlusIcon className={classNames('w-6', 'h-6', 'fill-current', isActive ? 'hidden' : null)} />
4342
<CloseIcon className={classNames('w-6', 'h-6', 'fill-current', !isActive ? 'hidden' : null)} />
4443
</span>

src/components/sections/FeaturedPeopleSection/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ function FeaturedPerson(props) {
153153
id={elementId}
154154
className={classNames(
155155
'sb-card',
156-
'h-full',
157156
colors,
158157
className,
159158
'overflow-hidden',
@@ -189,7 +188,7 @@ function FeaturedPerson(props) {
189188
</p>
190189
)}
191190
{bio && (
192-
<Markdown options={{ forceBlock: true, forceWrapper: true }} className="sb-markdown mt-4" {...(fieldPath && { 'data-sb-field-path': '.bio' })}>
191+
<Markdown options={{ forceBlock: true, forceWrapper: true }} className="mt-4 sb-markdown" {...(fieldPath && { 'data-sb-field-path': '.bio' })}>
193192
{bio}
194193
</Markdown>
195194
)}

src/components/sections/PostFeedSection/PostFeedItem/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default function PostFeedItem(props) {
3030
className={classNames(
3131
'sb-card',
3232
'block',
33-
'h-full',
3433
post.colors ?? 'bg-light-fg-dark',
3534
post.styles?.self?.margin ? mapStyles({ margin: post.styles?.self?.margin }) : undefined,
3635
post.styles?.self?.padding ? mapStyles({ padding: post.styles?.self?.padding }) : undefined,

0 commit comments

Comments
 (0)