From e3e1b9ddad278fabf40776ce8ce8ce965d26992d Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 6 Sep 2022 20:52:44 +0300 Subject: [PATCH] greatly improve performance --- .gitignore | 1 + frontend/public/global.css | 2 +- frontend/src/components/Message.svelte | 20 ++++++------ frontend/src/components/Messages.svelte | 12 +++----- frontend/src/stores.js | 41 ++++++++++++++++++++++--- src/database/templates.ts | 4 +-- src/routes/api/v1/channels.ts | 13 ++++++-- 7 files changed, 64 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index deed335..b9062f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ dist/ +frontend-new/ .env diff --git a/frontend/public/global.css b/frontend/public/global.css index 41d8b44..75f4f17 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -86,7 +86,7 @@ body { line-height: 1.75; display: flex; - flex-direction: column; + flex-direction: row; width: var(--viewportWidth); height: var(--viewportHeight); diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte index 355f1c5..202c6b9 100644 --- a/frontend/src/components/Message.svelte +++ b/frontend/src/components/Message.svelte @@ -1,10 +1,8 @@