Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-20 22:08:10 +08:00
parent 4e45a9b6d0
commit bbe03b36e0
3 changed files with 35 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import Markdown from 'react-markdown';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { useUserInfo } from '@/hooks/data/useUserInfo';
import { base64ToUtf8 } from '@/lib/utils';
import { EditBioDialog } from './edit-bio-dialog';
import { EditProfileDialog } from './edit-profile-dialog';
export function MainProfile() {
@@ -30,9 +31,10 @@ export function MainProfile() {
<EditProfileDialog />
</div>
</div>
<section className="rounded-md border border-muted w-full flex-1 lg:flex-auto min-h-72 lg:h-full mt-4 lg:mt-0 p-6 prose dark:prose-invert max-w-[1012px] self-center">
<section className="relative rounded-md border border-muted w-full flex-1 lg:flex-auto min-h-72 lg:h-full mt-4 lg:mt-0 p-6 prose dark:prose-invert max-w-[1012px] self-center">
{/* Bio */}
<Markdown>{base64ToUtf8(user.bio)}</Markdown>
<EditBioDialog />
</section>
</div>
);