From 6d70282be6e715774dd7a1917a61cdaeef7e7aac Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Mon, 12 Jan 2026 23:46:20 +0530 Subject: [PATCH] Made headers and toolbars sticky --- apps/x/apps/renderer/src/App.tsx | 18 ++++++++++-------- .../src/components/markdown-editor.tsx | 4 +++- .../src/components/sidebar-content.tsx | 6 +++--- .../renderer/src/components/ui/sidebar.tsx | 2 +- apps/x/apps/renderer/src/styles/editor.css | 14 +++++++++++--- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index 7c76ec3d..869cf880 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -705,7 +705,7 @@ function App() { return ( -
+
{/* Icon sidebar - always visible, fixed position */} @@ -727,9 +727,9 @@ function App() { knowledgeActions={knowledgeActions} chats={chatHistory} /> - + {/* Header with sidebar trigger */} -
+
@@ -766,11 +766,13 @@ function App() { {selectedPath ? ( selectedPath.endsWith('.md') ? ( - +
+ +
) : (
diff --git a/apps/x/apps/renderer/src/components/markdown-editor.tsx b/apps/x/apps/renderer/src/components/markdown-editor.tsx
index ccb993f1..7dbf730f 100644
--- a/apps/x/apps/renderer/src/components/markdown-editor.tsx
+++ b/apps/x/apps/renderer/src/components/markdown-editor.tsx
@@ -76,7 +76,9 @@ export function MarkdownEditor({ content, onChange, placeholder = 'Start writing
   return (
     
- +
+ +
) } diff --git a/apps/x/apps/renderer/src/components/sidebar-content.tsx b/apps/x/apps/renderer/src/components/sidebar-content.tsx index 0b178803..e0754865 100644 --- a/apps/x/apps/renderer/src/components/sidebar-content.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-content.tsx @@ -263,8 +263,8 @@ function KnowledgeSection({ return ( - -
+ +
{quickActions.map((action) => ( @@ -296,7 +296,7 @@ function KnowledgeSection({
- + {tree.map((item, index) => (