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 31, 2024
2 parents e79ba5e + 872b84a commit d8ebc6a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/dashboard/topics/[topic]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function TopicsLayout({
}) {
return (
<>
<article className="border-skin-base flex flex-col gap-2 border-x-0 border-t-0 px-3 py-2 md:border md:border-b-0 md:rounded-t-2xl">
<article className="border-skin-base flex flex-col gap-2 border-x-0 border-t-0 px-3 py-2 md:border md:rounded-t-2xl">
<div className="flex flex-wrap items-center gap-2 text-skin-secondary">
<div className="bg-primary/10 p-3 rounded-full">
<SiGooglemessages className="text-primary text-2xl" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function PostThreadLayout({
}) {
return (
<>
<div className="border-skin-base md:rounded-t-2xl border-b-0 md:border md:border-b-0">
<div className="border-skin-base border-b md:rounded-t-2xl md:border">
<h2 className="text-skin-base px-3 py-2 text-center text-xl font-semibold">
Post
</h2>
Expand Down
15 changes: 4 additions & 11 deletions src/components/contentDisplay/feedPost/FeedPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ export default function FeedPost(props: Props) {
if (!showPost) {
return (
<>
{reason && (
<div className="px-3 pt-3">
<Reason reason={reason} />
</div>
)}
<article>
<article className="p-3">
{reason && <Reason reason={reason} />}
<div className="relative flex items-start gap-3">
<Avatar size="md" className="z-20 shrink-0" />
<div className={`flex grow flex-col ${isParent && "pb-6"}`}>
Expand All @@ -77,11 +73,6 @@ export default function FeedPost(props: Props) {

return (
<>
{reason && (
<div className="px-3 pt-3">
<Reason reason={reason} />
</div>
)}
<article
onClick={(e) => {
e.stopPropagation();
Expand All @@ -93,6 +84,8 @@ export default function FeedPost(props: Props) {
}}
className="cursor-pointer hover:bg-skin-secondary p-3"
>
{reason && <Reason reason={reason} />}

<div className="relative flex items-start gap-3">
<div
onClick={(e) => {
Expand Down
12 changes: 7 additions & 5 deletions src/components/contentDisplay/topicHeader/TopicHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ export default function TopicHeader(props: Props) {
return (
<article className="border-skin-base md:border-x">
{error && (
<FeedAlert
variant="badResponse"
message="Something went wrong"
standalone
/>
<div className="p-3">
<FeedAlert
variant="badResponse"
message="Could not load this topic"
standalone
/>
</div>
)}

{data?.image && !hideImage && (
Expand Down
1 change: 1 addition & 0 deletions src/components/dataDisplay/reason/Reason.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function Reason(props: Props) {
{isRepost && (
<Link
href={`/dashboard/user/${reason.by.handle}`}
onClick={(e) => e.stopPropagation()}
className="max-w-fit"
>
<div className="text-skin-secondary hover:text-skin-tertiary inline-flex flex-wrap items-center gap-1 text-lg font-semibold">
Expand Down
2 changes: 1 addition & 1 deletion src/containers/thread/ParentContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function ParentContainer(props: Props) {
const [showMore, setShowMore] = useState(false);

return (
<div className="border-skin-base flex flex-col justify-between border border-x-0 first:border-t-0 last:rounded-b-2xl last:border-b md:border-x odd:[&:not(:last-child)]:border-b-0 even:[&:not(:last-child)]:border-b-0">
<div className="border-skin-base flex flex-col justify-between border border-x-0 first:border-t-0 last:rounded-b-2xl last:border-b md:border-x odd:[&:not(:last-child)]:border-b-0 even:[&:not(:last-child)]:border-b-0">
{parentChain.map((parent, i) => (
<div key={i}>
{AppBskyFeedDefs.isBlockedPost(parent) && (
Expand Down

0 comments on commit d8ebc6a

Please sign in to comment.