Skip to content

Commit

Permalink
fix: run pnpm run test:static --fix in ui folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dan2k3k4 committed Jan 17, 2025
1 parent b429677 commit 67a593c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/ui/src/components/Organisms/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const CardItem = ({
return (
<article
aria-labelledby={formattedID}
className="focus-within:outline focus-within:outline-2 focus-within:outline-indigo-600 relative max-w-sm bg-white rounded-lg hover:shadow grid grid-rows-[auto_1fr]"
className="relative grid max-w-sm grid-rows-[auto_1fr] rounded-lg bg-white focus-within:outline focus-within:outline-2 focus-within:outline-indigo-600 hover:shadow"
>
<div className="p-5 grid grid-rows-[auto_1fr_auto] gap-4">
<div className="grid grid-rows-[auto_1fr_auto] gap-4 p-5">
<h5
id={formattedID}
className="mb-2 text-2xl font-bold tracking-tight text-gray-900"
Expand All @@ -28,7 +28,7 @@ export const CardItem = ({
{hero?.headline ? <div>{hero?.headline}</div> : null}
<Link
href={path}
className="row-start-3 justify-self-start inline-flex items-center px-3 py-2 text-sm font-medium text-center text-blue-700 border border-blue-700 rounded-lg hover:bg-blue-800 hover:text-white focus:outline-offset-4 after:content-[''] after:absolute after:inset-0"
className="row-start-3 inline-flex items-center justify-self-start rounded-lg border border-blue-700 px-3 py-2 text-center text-sm font-medium text-blue-700 after:absolute after:inset-0 after:content-[''] hover:bg-blue-800 hover:text-white focus:outline-offset-4"
>
<span className="sr-only size-0 overflow-hidden">{title}</span>
{readMoreText ||
Expand Down Expand Up @@ -57,7 +57,7 @@ export const CardItem = ({
{teaserImage ? (
<Image
{...teaserImage}
className="w-full aspect-[16/9] rounded-t-lg"
className="aspect-[16/9] w-full rounded-t-lg"
/>
) : (
<div className="aspect-[16/9] rounded-t-lg bg-indigo-200" />
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Organisms/ContentHub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function ContentHub({ pageSize = 10 }: { pageSize: number }) {
) : null}
{data?.contentHub.total ? (
<>
<ul className="my-8 grid gap-4 lg:gap-8 md:grid-cols-2 lg:grid-cols-3 auto-rows-fr grid-rows-subgrid">
<ul className="my-8 grid auto-rows-fr grid-rows-subgrid gap-4 md:grid-cols-2 lg:grid-cols-3 lg:gap-8">
{data?.contentHub.items.filter(isTruthy).map((item) => {
return (
<li key={item.path} className="grid grid-rows-subgrid">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function BlockTeaserList(props: BlockTeaserListFragment) {
return (
<div className="bg-white px-6 py-12 lg:px-8">
<div className="mx-auto max-w-6xl">
<ul className="my-8 grid md:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8 grid-cols-subgrid">
<ul className="my-8 grid grid-cols-subgrid gap-4 md:grid-cols-2 lg:grid-cols-3 lg:gap-8">
{props.staticContent?.map((teaserItem) => {
staticIds.push(getUUIDFromId(teaserItem?.content?.id || ''));
return teaserItem?.content ? (
Expand Down

0 comments on commit 67a593c

Please sign in to comment.