feat: improve official columns

This commit is contained in:
2024-04-18 07:50:46 +07:00
parent f3c52237fa
commit cd31b99559
10 changed files with 59 additions and 77 deletions

View File

@@ -126,7 +126,7 @@ export function NoteContent({
);
if (compact) {
parsedContent = reactStringReplace(parsedContent, /[\r\n]{2,}/g, () => (
parsedContent = reactStringReplace(parsedContent, /\n*\n/g, () => (
<div key={nanoid()} className="h-1.5" />
));
}

View File

@@ -19,7 +19,7 @@ export function MentionNote({
return (
<div
contentEditable={false}
className="my-1 flex w-full cursor-default items-center justify-between rounded-2xl border border-black/10 p-3 dark:border-white/10"
className="my-1 flex w-full cursor-default items-center justify-between rounded-xl border border-black/10 p-3 dark:border-white/10"
>
<p>Loading...</p>
</div>
@@ -30,7 +30,7 @@ export function MentionNote({
return (
<div
contentEditable={false}
className="my-1 w-full cursor-default rounded-2xl border border-black/10 p-3 dark:border-white/10"
className="my-1 w-full cursor-default rounded-xl border border-black/10 p-3 dark:border-white/10"
>
{t("note.error")}
</div>