···11import Post from "app/lish/[did]/[publication]/[rkey]/l-quote/[quote]/page";
22import { CommentTiny } from "components/Icons/CommentTiny";
33+import { ReplyTiny } from "components/Icons/ReplyTiny";
3445export const CommentTabContent = () => {
56 let isReply = true;
67 return (
78 <>
88- <CommentWrapper2 isReply />
99- <CommentWrapper2 />
1010- <CommentWrapper2 />
1111- <CommentWrapper2 isReply />
99+ <Comment
1010+ displayName="celine"
1111+ postTitle="Tagging and Flaggin Babyyyy make this super long so it doesn't wrap around please"
1212+ comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
1313+ isReply
1414+ />
1515+ <Comment
1616+ displayName="celine"
1717+ postTitle="Another day, another test post eh,"
1818+ comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
1919+ />
2020+ <Comment
2121+ displayName="celine"
2222+ postTitle="Some other post title"
2323+ comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
2424+ />
2525+ <Comment
2626+ displayName="celine"
2727+ postTitle="Leaflet Lab Notes"
2828+ comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
2929+ isReply
3030+ />
1231 </>
1332 );
1433};
15341616-const PostListingCompact = (props: { title: string; pubName: string }) => {
1717- return (
1818- <div className=" flex gap-2 justify-between border-b border-border-light pt-2 pb-0.5 text-xs text-tertiary font-bold text-left">
1919- {props.title}
2020- <div className="flex gap-2 text-xs text-tertiary font-normal items-center">
2121- {props.pubName}
2222- </div>
2323- </div>
2424- );
2525-};
2626-2735const Comment = (props: {
2836 displayName: React.ReactNode;
2929- handle: string;
3737+ postTitle: string;
3038 comment: string;
3131- reply?: boolean;
3939+ isReply?: boolean;
3240}) => {
3341 return (
3434- <div className={`w-full flex flex-col ${props.reply ? "text-xs" : ""}`}>
3535- <div className="flex gap-2">
3636- <div className="flex flex-col min-h-full shrink-0 ">
3737- <div className={`rounded-full bg-test shrink-0 w-5 h-5`} />
3838-3939- {props.reply && (
4040- <div className={`border-l border-border-light h-full mx-auto`} />
4141- )}
4242- </div>
4343- <div className={`flex flex-col`}>
4242+ <div className={`w-full flex flex-col text-left mb-8`}>
4343+ <div className="flex gap-2 w-full">
4444+ <div className={`rounded-full bg-test shrink-0 w-5 h-5`} />
4545+ <div className={`flex flex-col w-full min-w-0 grow`}>
4446 <div className="flex flex-row gap-2">
4545- <div
4646- className={` font-bold ${props.reply ? "text-tertiary" : "text-primary"}`}
4747- >
4848- {props.displayName}
4747+ <div className={`text-tertiary text-sm truncate`}>
4848+ <span className="font-bold text-secondary">
4949+ {props.displayName}
5050+ </span>{" "}
5151+ {props.isReply ? "replied" : "commented"} on{" "}
5252+ <span className=" italic text-accent-contrast">
5353+ {props.postTitle}
5454+ </span>
4955 </div>
5050- {props.reply && <div>reply</div>}
5156 </div>
5252- <div
5353- className={`w-full text-left ${props.reply ? "truncate text-tertiary" : "text-secondary"} `}
5454- >
5757+ {props.isReply && (
5858+ <div className="text-xs text-tertiary flex flex-row gap-2 w-full my-0.5 items-center">
5959+ <ReplyTiny className="shrink-0" />
6060+ <div className="font-bold shrink-0">jared</div>
6161+ <div className="grow truncate">
6262+ this is the content of what i was saying and its very long so i
6363+ can get a good look at what's happening
6464+ </div>
6565+ </div>
6666+ )}
6767+6868+ <div className={`w-full text-left text-secondary `}>
5569 {props.comment}
5670 </div>
5771 </div>
···5973 </div>
6074 );
6175};
6262-6363-const CommentWrapper1 = (props: { isReply?: boolean }) => {
6464- return (
6565- <div className="flex flex-col rounded-md pb-8">
6666- <PostListingCompact title="Post Title Here" pubName="Pub Name" />
6767- {props.isReply && (
6868- <Comment
6969- displayName="jared"
7070- handle="awarm.space"
7171- comment="this is some content that i am would like a reply to. It's really really long"
7272- reply
7373- />
7474- )}
7575- <Comment
7676- displayName="celine"
7777- handle="cozylittle.house"
7878- comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
7979- />
8080- </div>
8181- );
8282-};
8383-8484-const CommentWrapper2 = (props: { isReply?: boolean }) => {
8585- return (
8686- <div className="mb-8">
8787- <Comment
8888- displayName={
8989- <div className="font-normal text-tertiary text-sm">
9090- <span className="font-bold">celine </span>commented on{" "}
9191- <span className=" italic text-accent-contrast">
9292- Leaflet Lab Notes
9393- </span>
9494- </div>
9595- }
9696- handle="cozylittle.house"
9797- comment="Here's my reply! I'm hoping i can makie ti long enought to space two lines. Do we want rich text here? Probably not since we dont support that anyway lol"
9898- />
9999- </div>
100100- );
101101-};