feat: custom CSS editor with CodeMirror, live preview, and /docs/css reference

This commit is contained in:
2026-05-24 03:26:34 +02:00
parent fccc4064cf
commit f4932af2ba
7 changed files with 493 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import {
getUserThoughts,
Me,
} from "@/lib/api";
import { CssPreviewListener } from "@/components/css-preview-listener";
interface ProfilePageProps {
params: Promise<{ username: string }>;
@@ -134,6 +135,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
{user.customCss && (
<style dangerouslySetInnerHTML={{ __html: user.customCss }} />
)}
<CssPreviewListener />
<div
id="profile-header"