mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
refactor(editor): improve SourceCodeEditor styling and enhance scrollbar behavior
This commit is contained in:
parent
3f203f8c49
commit
fe9ffa1413
2 changed files with 11 additions and 7 deletions
|
|
@ -256,12 +256,9 @@ export function EditorPanelContent({
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-between px-4 py-2 shrink-0 border-b">
|
||||
<div className="flex h-14 items-center justify-between px-4 shrink-0 border-b">
|
||||
<div className="flex-1 min-w-0">
|
||||
<h2 className="text-sm font-semibold truncate">{displayTitle}</h2>
|
||||
{isEditableType && editedMarkdown !== null && (
|
||||
<p className="text-[10px] text-muted-foreground">Unsaved changes</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-1 shrink-0">
|
||||
{!isLocalFileMode && editorDoc?.document_type && documentId && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue