Skip to content

Commit

Permalink
More link breaking, more better;
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen committed Jan 18, 2024
1 parent 22a6b32 commit 54787f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const RichTextRenderer = ({
(attributes?.url as string)?.startsWith(window.location.origin) ? '_self' : '_blank'
}
rel="noopener noreferrer"
className="text-primary hover:underline break-words"
className="text-primary hover:underline break-all"
onClick={(e) => e.stopPropagation()}
>
{children ?? (attributes?.text || attributes?.url) + ''}
Expand All @@ -152,7 +152,7 @@ export const RichTextRenderer = ({
return (
<div className="flex">
<ActionLink
className="break-words my-2 w-auto rounded-md px-3 py-2 text-left"
className="break-all my-2 w-auto rounded-md px-3 py-2 text-left"
href={attributes.linkTarget as string}
type="secondary"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ const dsrToPostFile = async <T extends PostContent>(
...dsr.fileMetadata.appData,
content: postContent,
},
senderOdinId: postContent.authorOdinId || dsr.fileMetadata.senderOdinId,
// Fallback to the author odin id if the sender odin id is not set; (Sanity after the issues we had with the senderOdinId being reset)
senderOdinId: dsr.fileMetadata.senderOdinId || postContent.authorOdinId,
},
};

Expand Down

0 comments on commit 54787f1

Please sign in to comment.