Skip to content

Commit 0e164ad

Browse files
committed
Remove needless comments
1 parent cb32124 commit 0e164ad

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

src/components/layout/Layout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const Layout: React.FC = () => {
4646
useShallow(state => state.globalSettings?.appearance?.headingColor) // headingColor is an object with .light and .dark
4747
)
4848

49-
// Preferences state management
5049
const [preferencesOpen, setPreferencesOpen] = useState(false)
5150

5251
const handleSetPreferencesOpen = useCallback((open: boolean) => {
@@ -121,13 +120,10 @@ export const Layout: React.FC = () => {
121120

122121
return (
123122
<div className="h-screen w-screen bg-[var(--editor-color-background)] flex flex-col rounded-xl overflow-hidden">
124-
{/* Unified titlebar */}
125123
<UnifiedTitleBar />
126124

127-
{/* Main content area with three-panel layout */}
128125
<div className="flex-1 min-h-0">
129126
<ResizablePanelGroup direction="horizontal" className="h-full">
130-
{/* Left Sidebar */}
131127
<ResizablePanel
132128
defaultSize={sidebarVisible ? LAYOUT_SIZES.leftSidebar.default : 0}
133129
minSize={sidebarVisible ? LAYOUT_SIZES.leftSidebar.min : 0}
@@ -140,7 +136,6 @@ export const Layout: React.FC = () => {
140136
className={`!cursor-col-resize ${sidebarVisible ? '' : 'hidden'}`}
141137
/>
142138

143-
{/* Main Editor */}
144139
<ResizablePanel
145140
defaultSize={LAYOUT_SIZES.mainEditor.getDefault(
146141
sidebarVisible,
@@ -151,7 +146,6 @@ export const Layout: React.FC = () => {
151146
<MainEditor />
152147
</ResizablePanel>
153148

154-
{/* Right Sidebar */}
155149
<ResizableHandle
156150
className={`!cursor-col-resize ${frontmatterPanelVisible ? '' : 'hidden'}`}
157151
/>

src/components/layout/LeftSidebar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const LeftSidebar: React.FC = () => {
6464
currentProjectSettings
6565
)
6666

67-
// Get the current collection
6867
const currentCollection = collections.find(c => c.name === selectedCollection)
6968

7069
const {

src/lib/editor/extensions/theme.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ export const createEditorTheme = () => {
4242
'.cm-line': {
4343
padding: '0',
4444
},
45-
// Cursor styling
4645
'.cm-cursor': {
4746
borderLeftColor: 'var(--editor-color-carat)',
4847
borderLeftWidth: '3px',
4948
height: '1.1em',
5049
},
51-
// Selection styling
5250
'.cm-selectionBackground': {
5351
backgroundColor: 'var(--editor-color-selectedtext-background) !important',
5452
},
@@ -59,8 +57,6 @@ export const createEditorTheme = () => {
5957
'&.alt-pressed .cm-content': {
6058
cursor: 'default',
6159
},
62-
63-
// Snippet field styling
6460
'.cm-snippetField': {
6561
border: '1px solid rgba(0, 0, 0, 0.05)',
6662
backgroundColor: 'var(--editor-color-background)',

0 commit comments

Comments
 (0)