Skip to content

Commit

Permalink
feat(profile): buggy item height
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Nov 26, 2024
1 parent f5f9d35 commit 85bab45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function List(query_info: QueryContactsSuccessResult) {
return <EmptyList>Aucun contact dans votre cercle</EmptyList>;

return (
<ul className="list-none space-y-6">
<ul className="list-none">
{flatten_pages.map((item) => (
<li key={item.id}>
<Item {...item} />
Expand All @@ -71,7 +71,10 @@ function List(query_info: QueryContactsSuccessResult) {

function Item(profile: Profile) {
return (
<Link className={button_item()} href={`/@${profile.id}`}>
<Link
className={button_item({ className: "h-auto" })}
href={`/@${profile.id}`}
>
<AvatarMedia
image={profile.image}
id={profile.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function List(query_info: QueryProfilesFollowingMeSuccessResult) {
);

return (
<ul className="list-none space-y-6">
<ul className="list-none">
{flatten_pages.map((item) => (
<li key={item.id}>
<Item {...item} />
Expand Down
13 changes: 4 additions & 9 deletions apps/www/app/(main)/forum/@see_also/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//

import { TRPC_Hydrate, TRPC_SSR } from ":trpc/server";
import List from ":widgets/opportunities/list";
import { TRPC_Hydrate } from ":trpc/server";
import { trpc_server } from "@1.infra/trpc/react-query/server";
import type { ForumSearchParams } from "@1.modules/forum.domain";
import Link from "next/link";

Expand All @@ -15,13 +15,8 @@ export default async function Page({
const { category } = await searchParams;

await Promise.all([
TRPC_SSR.opportunity.find.prefetchInfinite({
category,
limit: 5,
}),
TRPC_SSR.opportunity.find.prefetchInfinite({
limit: 5,
}),
trpc_server.opportunity.find.prefetchInfinite({ category, limit: 5 }),
trpc_server.opportunity.find.prefetchInfinite({ limit: 5 }),
]);

return (
Expand Down

0 comments on commit 85bab45

Please sign in to comment.