Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Dec 19, 2023
2 parents 4914d1b + b4ea6a4 commit 059936c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions src/components/contentDisplay/searchPost/SearchPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,25 @@ export default function SearchPost(props: Props) {
`/dashboard/user/${post.author.handle}/post/${getPostId(post.uri)}`
);
}}
className="flex justify-between items-center gap-2 p-3 border border-x-0 md:border-x last:border-b even:[&:not(:last-child)]:border-b-0 odd:[&:not(:last-child)]:border-b-0 hover:cursor-pointer"
className="p-3 border border-x-0 md:border-x last:border-b even:[&:not(:last-child)]:border-b-0 odd:[&:not(:last-child)]:border-b-0 hover:cursor-pointer"
>
<div className="flex items-start gap-3">
<div className="relative flex items-start gap-3">
<Link
href={`/dashboard/user/${author.handle}`}
onClick={(e) => {
e.stopPropagation();
}}
className="shrink-0 hover:brightness-90"
className="z-20 shrink-0 hover:brightness-90"
>
<Avatar profile={author} size="md" />
</Link>
<div className="flex flex-col">
<div className="flex flex-col grow">
<div className="flex">
<Link
href={`/dashboard/user/${author.handle}`}
onClick={(e) => {
e.stopPropagation();
}}
className="flex gap-1"
>
<span className="font-semibold break-all max-w-[90%] shrink-0 line-clamp-1 overflow-ellipsis text-neutral-700 hover:text-neutral-500">
Expand Down
2 changes: 1 addition & 1 deletion src/components/dataDisplay/postActions/PostActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function PostActions(props: Props) {

const handleShare = useCallback(() => {
const postId = getPostId(post.uri);
const shareUrl = `https://bsky.app/profile/${post.author.handle}/post/${postId}`;
const shareUrl = `https://useouranos.app/dashboard/user/${post.author.handle}/post/${postId}`;
clipboard.copy(shareUrl);
toast.success("Link to post copied to clipboard");
}, [clipboard, post.uri, post.author.handle]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/dataDisplay/userActions/UserActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function UserActions(props: Props) {
const clipboard = useClipboard({ copiedTimeout: 3500 });

const handleShare = useCallback(() => {
const shareUrl = `https://bsky.app/profile/${author.handle}`;
const shareUrl = `https://useouranos.app/dashboard/user/${author.handle}`;
clipboard.copy(shareUrl);
toast.success("Link to profile copied to clipboard");
}, [clipboard, author]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/inputs/editor/TextEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function TextEdit(props: Props) {
className={`rounded-full z-50 mb-2 ${isReply && "ml-2"}`}
/>
<div className="flex flex-col">
<span className="font-semibold break-all max-w-[90%] shrink-0 line-clamp-1 overflow-ellipsis hover:text-neutral-600">
<span className="font-semibold break-all max-w-[90%] shrink-0 line-clamp-1 overflow-ellipsis">
{author?.displayName ?? author?.handle}
</span>
<span className="text-neutral-400 font-medium line-clamp-1 break-all shrink min-w-[10%]">
Expand Down

0 comments on commit 059936c

Please sign in to comment.