Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Oct 30, 2024
2 parents da62e90 + ff06486 commit 44c6174
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/contentDisplay/topicHeader/TopicHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function TopicHeader(props: Props) {
if (isLoading && !data) return <TopicHeaderSkeleton />;

return (
<article className="border-skin-base flex flex-col gap-2 border border-x-0 border-t-0 p-3 md:border md:rounded-t-2xl">
<article className="border-skin-base flex flex-col gap-2 border-x-0 border-t-0 p-3 md:border md:border-b-0 md:rounded-t-2xl">
{error && (
<FeedAlert
variant="badResponse"
Expand Down
27 changes: 17 additions & 10 deletions src/components/dataDisplay/postText/postText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Fragment } from "react";
import * as Tooltip from "@radix-ui/react-tooltip";
import { BiLinkExternal } from "react-icons/bi";
import PostTag from "../postTag/PostTag";
import ProfileHoverCard from "@/components/contentDisplay/profileHoverCard/ProfileHoverCard";

interface Props {
record: PostView["record"];
Expand All @@ -33,14 +34,20 @@ export default function PostText(props: Props) {
content.push({
text: segment.text,
component: (
<Link
className="text-skin-link-base hover:text-skin-link-hover break-after-auto"
href={`/dashboard/user/${getHandle(segment.text)}`}
key={segment.mention?.did}
onClick={(e) => e.stopPropagation()}
>
{segment.text}
</Link>
<>
{segment.mention?.did && (
<Link
className="text-skin-link-base hover:text-skin-link-hover break-after-auto"
href={`/dashboard/user/${getHandle(segment.text)}`}
key={segment.mention?.did}
onClick={(e) => e.stopPropagation()}
>
<ProfileHoverCard handle={segment.mention.did}>
{segment.text}
</ProfileHoverCard>
</Link>
)}
</>
),
});
} else if (segment.isLink()) {
Expand All @@ -61,12 +68,12 @@ export default function PostText(props: Props) {
</Link>
</Tooltip.Trigger>
<Tooltip.Portal>
<Tooltip.Content className="bg-skin-base z-[60] p-3 border border-skin-base rounded-xl max-w-xs shadow-lg m-3">
<Tooltip.Content className="flex flex-col gap-1 bg-skin-base z-[60] p-3 border border-skin-base rounded-xl max-w-xs shadow-lg m-3">
<div className="flex flex-wrap items-center gap-2 text-lg">
<BiLinkExternal />
<span className="block text-skin-base font-medium">
Link
</span>
<BiLinkExternal />
</div>

<Link
Expand Down

0 comments on commit 44c6174

Please sign in to comment.