From 58a211663a6bdfcb78dca86a7039089344749fe2 Mon Sep 17 00:00:00 2001 From: lnn0q Date: Thu, 5 Jun 2025 20:10:02 +0300 Subject: [PATCH] small fixes --- .example.env | 15 +++++++++------ app/client/components/EditorSlate.tsx | 3 ++- .../work/book/$bookId/chapter/$chapterId/view.tsx | 3 +-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.example.env b/.example.env index be174f1..fdbb85f 100644 --- a/.example.env +++ b/.example.env @@ -1,6 +1,9 @@ -VITE_HOST=localhost -VITE_PORT=4000 -ACCESS_TOKEN_SECRET=sometoken1 -REFRESH_TOKEN_SECRET=sometoken2 -DATABASE_URL="mysql://janedoe:mypassword@localhost:3306/mydb" -MODE="dev" +VITE_MODE="dev" +VITE_HOST=192.168.1.2 +VITE_HOST_REMOTE=123.123.123.123 +VITE_DOMAIN_NAME=n0q.dev +VITE_PORT=443 +VITE_APP_NAME="echoes" +ACCESS_TOKEN_SECRET="encoded string" +REFRESH_TOKEN_SECRET="encoded string" +DATABASE_URL="mysql://user@localhost:3306/project_ln" diff --git a/app/client/components/EditorSlate.tsx b/app/client/components/EditorSlate.tsx index d233d2c..408ae1c 100644 --- a/app/client/components/EditorSlate.tsx +++ b/app/client/components/EditorSlate.tsx @@ -134,7 +134,8 @@ function EditorViewport({ maxHeight: readOnly ? undefined : '60vh', height: '100%', padding: 0, - overflowY: 'auto' + overflowY: 'auto', + overflowX: 'clip' }} renderElement={renderElement} renderLeaf={renderLeaf} diff --git a/app/client/pages/work/book/$bookId/chapter/$chapterId/view.tsx b/app/client/pages/work/book/$bookId/chapter/$chapterId/view.tsx index 3341bcb..284c74f 100644 --- a/app/client/pages/work/book/$bookId/chapter/$chapterId/view.tsx +++ b/app/client/pages/work/book/$bookId/chapter/$chapterId/view.tsx @@ -73,12 +73,11 @@ function BookChapterView({ Footnote: - {data.bookChapterOne.foreword} + {data.bookChapterOne.footnote} )} - {data.bookChapterOne.footnote}