Skip to content

Commit

Permalink
Trying to fix postcard width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Oct 20, 2024
1 parent 42fd499 commit 3c97ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/profile/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const ProfilePage: NextPage = () => {
Revenue
</button>
</div>
<NewsFeed posts={posts} />
<NewsFeed posts={posts} isGrid={false} />
<div ref={lastPostElementRef}></div>
{loadingMore && <LoadingBars />}
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/components/punk-society/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface Post extends Partial<NFTMetaData> {
date?: string;
}

export const PostCard = ({ post, isGrid }: { post: Post; isGrid: boolean }) => {
export const PostCard = ({ post }: { post: Post; isGrid: boolean }) => {
const [isModalOpen, setIsModalOpen] = useState(false);
// const [showCommentSection, setShowCommentSection] = useState(false);

Expand Down Expand Up @@ -63,7 +63,7 @@ export const PostCard = ({ post, isGrid }: { post: Post; isGrid: boolean }) => {

return (
<div className="flex justify-center items-center">
<div className={`card-compact bg-base-300 ${isGrid ? "w-[300px]" : "w-[100%]"} relative group rounded-lg`}>
<div className={`card-compact bg-base-300 w-full lg:w-[300px] relative group rounded-lg`}>
<div className="flex space-x-3 p-3 items-center">
<ProfileAddress address={post.user} />
</div>
Expand Down

0 comments on commit 3c97ab4

Please sign in to comment.