Skip to content

Commit

Permalink
Blur out bridged posts
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Jun 19, 2024
1 parent 31ecc2f commit b5f3807
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const PostBase = memo((props: PostBaseProps) => {
<SpeechBubble
reply={props.reply}
transparent={!!props.post.optimistic}
blur={props.post.bridge}
speaker={
<User username={props.post.u}>
<button aria-label={props.post.u}>
Expand Down Expand Up @@ -248,10 +249,10 @@ const PostBase = memo((props: PostBaseProps) => {

type SpeechBubbleProps = {
reply?: boolean | "topLevel";
blur?: string;
speaker: ReactNode;
bubble: ReactNode;
transparent?: boolean;
onDoubleClick?: MouseEventHandler<HTMLDivElement>;
};
const SpeechBubble = (props: SpeechBubbleProps) => {
return (
Expand All @@ -265,8 +266,8 @@ const SpeechBubble = (props: SpeechBubbleProps) => {
props.reply && props.reply !== "topLevel"
? "bg-gray-200 dark:bg-gray-800"
: "bg-gray-100 dark:bg-gray-900",
props.blur ? "blur-sm hover:blur-0" : "",
)}
onDoubleClick={props.onDoubleClick}
>
<div
className={twMerge(
Expand Down

0 comments on commit b5f3807

Please sign in to comment.