diff --git a/src/widgets/notebook/NotebookEditor.tsx b/src/widgets/notebook/NotebookEditor.tsx
index 8d527e42b..95ce4b47c 100644
--- a/src/widgets/notebook/NotebookEditor.tsx
+++ b/src/widgets/notebook/NotebookEditor.tsx
@@ -1,10 +1,10 @@
-import { ActionIcon, createStyles, rem } from '@mantine/core';
+import { ActionIcon, ScrollArea } from '@mantine/core';
import { useDebouncedValue } from '@mantine/hooks';
import { Link, RichTextEditor } from '@mantine/tiptap';
-import { IconArrowUp, IconEdit, IconEditOff } from '@tabler/icons-react';
+import { IconEdit, IconEditOff } from '@tabler/icons-react';
import { BubbleMenu, useEditor } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';
-import { useEffect, useRef, useState } from 'react';
+import { useState } from 'react';
import { useConfigStore } from '~/config/store';
import { useColorTheme } from '~/tools/color';
import { api } from '~/utils/api';
@@ -76,41 +76,29 @@ export function Editor({ widget }: { widget: INotebookWidget }) {
return (
<>
- {!enabled && (
- setIsEditing(handleEditToggle)}
- >
- {isEditing ? : }
-
- )}
({
root: {
'& .ProseMirror': {
padding: '0 !important',
},
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
border: 'none',
+ borderRadius: '0.5rem',
+ display: 'flex',
+ flexDirection: 'column',
},
toolbar: {
- backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
- paddingTop: 0,
- paddingBottom: theme.spacing.md,
+ backgroundColor: 'transparent',
+ padding: '0.5rem',
},
content: {
- backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : 'white',
+ backgroundColor: 'transparent',
+ padding: '0.5rem',
},
})}
>
@@ -156,8 +144,27 @@ export function Editor({ widget }: { widget: INotebookWidget }) {
)}
-
+
+
+
+ {!enabled && (
+ setIsEditing(handleEditToggle)}
+ >
+ {isEditing ? : }
+
+ )}
>
);
}