diff --git a/backend/api/api.go b/backend/api/api.go index d4e3c3c..16e90a0 100644 --- a/backend/api/api.go +++ b/backend/api/api.go @@ -22,6 +22,7 @@ func Start() { server.GET("/assets/*filepath", website.ServeAssets) server.GET("/public/*filepath", website.ServePublic) server.Static("/notes/attachments", config.LocalNotePath+"attachments") + server.Static("/notes/assets", config.LocalNotePath+"assets") server.NoRoute(website.NoRoot) api := server.Group("/api") diff --git a/frontend/src/screens/NewNoteScreen/index.tsx b/frontend/src/screens/NewNoteScreen/index.tsx index ebd025a..d1c6d78 100644 --- a/frontend/src/screens/NewNoteScreen/index.tsx +++ b/frontend/src/screens/NewNoteScreen/index.tsx @@ -114,7 +114,6 @@ const NewNoteScreen: React.FC = () => { onChange={v => setContent(v!)} tabIndex={2} placeholder="Note..." - autoFocus ref={contentInputRef} height={window.innerHeight - 180} preview={window.innerWidth < 500 ? 'edit' : 'live'}