From c3d1a3c1916c5d0f4db5ea308325fbfc2ff4748a Mon Sep 17 00:00:00 2001 From: biglyderv Date: Sun, 25 May 2025 21:23:16 -0400 Subject: [PATCH] fix css issues --- public/index.css | 2 ++ routes/init.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/public/index.css b/public/index.css index 27b790c..353d86e 100644 --- a/public/index.css +++ b/public/index.css @@ -26,6 +26,8 @@ body { background-color: var(--main-2); margin: auto; border-radius: 20px; + max-height: 60vh; + overflow-y: auto; } .header, diff --git a/routes/init.js b/routes/init.js index 5dd5da7..9e0e65b 100644 --- a/routes/init.js +++ b/routes/init.js @@ -117,6 +117,11 @@ async function initr(req, res, next) { ]; } + if (req.path.endsWith('.png')) { + res.sendFile(`${process.cwd()}/public/login.svg`); + return; + } + res.ctx = { mainPage: '404.ejs', mainCtx: {},