Skip to content

Commit 457419c

Browse files
changes
1 parent 4f7db21 commit 457419c

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed
Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
import { Button } from './ui/button';
2+
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
3+
import {
4+
Bell,
5+
6+
7+
Plus,
8+
} from 'lucide-react';
9+
110
export default function EditorFooter() {
2-
return <></>;
11+
return (
12+
<footer className="bg-editor text-editor-foreground border-editor-border sticky bottom-0 z-10 w-full border-t">
13+
<div className="mx-auto flex max-w-5xl items-center justify-between gap-2 px-4 py-2">
14+
<div className="flex items-center gap-1">
15+
<Tooltip>
16+
<TooltipTrigger asChild>
17+
<Button variant="ghost" size="icon" className="size-7">
18+
<Bell className="size-4" />
19+
</Button>
20+
</TooltipTrigger>
21+
<TooltipContent sideOffset={6}>Reminder</TooltipContent>
22+
</Tooltip>
23+
24+
<Button variant="ghost" size="sm" className="gap-2">
25+
<Plus className="size-4" />
26+
Add tag
27+
</Button>
28+
</div>
29+
</div>
30+
</footer>
31+
);
332
}

client/src/components/editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export const Editor = () => {
289289
{/*<div>
290290
<button onClick={toggleEditable}>Toggle editable</button>
291291
</div>*/}
292-
<div className="flex-1 overflow-hidden">
292+
<div className="flex-1 overflow-auto">
293293
<DragHandle editor={editor}>
294294
<svg
295295
xmlns="http://www.w3.org/2000/svg"
@@ -308,7 +308,7 @@ export const Editor = () => {
308308
<EditorContent
309309
editor={editor}
310310
className={cn(
311-
'bg-editor text-editor-foreground mx-auto h-full min-h-full w-full border-0 shadow-lg overflow-hidden',
311+
'bg-editor text-editor-foreground mx-auto h-full min-h-full w-full border-0 shadow-lg',
312312
)}
313313
/>
314314
</div>

0 commit comments

Comments
 (0)