Skip to content

Commit

Permalink
🚨 !HOTFIX!: ul, li 태그 div로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
inhachoi committed Dec 4, 2024
1 parent a46cd06 commit aae7749
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions apps/client/src/entities/home/WorkspaceItem/WorkspaceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export const WorkspaceItem = ({
};

return (

<li className="shadow-md relative overflow-hidden rounded-lg bg-white">
<div className="relative overflow-hidden rounded-lg bg-white shadow-md">
<button
className="absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-full bg-white p-2 text-gray-300 transition-colors hover:bg-red-500 hover:text-white"
onClick={handleOnclick}
Expand All @@ -69,6 +68,6 @@ export const WorkspaceItem = ({
<p className="text-medium-sm text-gray-400">{formatRelativeOrAbsoluteDate(lastEdited)}</p>
</aside>
</div>
</li>
</div>
);
};
8 changes: 5 additions & 3 deletions apps/client/src/widgets/home/WorkspaceGrid/WorkspaceGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import { PropsWithChildren } from 'react';
*/
export const WorkspaceGrid = ({ children }: PropsWithChildren) => {
return (
<ul>
<li className="grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">{children}</li>
</ul>
<div>
<div className="grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{children}
</div>
</div>
);
};

0 comments on commit aae7749

Please sign in to comment.