From 15df731e37962a8b2f9586e2ea8437f2fef755f5 Mon Sep 17 00:00:00 2001 From: dmitriylaukhin Date: Sat, 25 Apr 2026 18:10:07 +0500 Subject: [PATCH] Make lesson editor header and toolbar sticky on scroll Both the controls bar (Save button, publish toggle) and the formatting toolbar now stick to the top of the viewport while editing long lessons. Header sticks at top: 0, toolbar sticks just below it at top: 62px. Co-Authored-By: Claude Sonnet 4.6 --- src/components/admin/lesson-editor.tsx | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/components/admin/lesson-editor.tsx b/src/components/admin/lesson-editor.tsx index d8b205a..b1c501f 100644 --- a/src/components/admin/lesson-editor.tsx +++ b/src/components/admin/lesson-editor.tsx @@ -154,7 +154,22 @@ export function LessonEditor({ return (
{/* Header controls */} -
+
{/* Left: published toggle + prev/next */}