From 7a65e03ad364a17e53c7e4e88ba49587efae3906 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Fri, 26 Dec 2025 23:53:13 +0800 Subject: [PATCH] fix(layout): prevent footer gap on non-scroll pages --- src/pages/DashboardPage.tsx | 6 +++++- src/styles/layout.scss | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx index 209b611..b941a54 100644 --- a/src/pages/DashboardPage.tsx +++ b/src/pages/DashboardPage.tsx @@ -242,7 +242,11 @@ export function DashboardPage() {
{apiBase || '-'} - {serverVersion && v{serverVersion}} + {serverVersion && ( + + v{serverVersion.trim().replace(/^[vV]+/, '')} + + )} {serverBuildDate && ( {new Date(serverBuildDate).toLocaleDateString(i18n.language)} diff --git a/src/styles/layout.scss b/src/styles/layout.scss index e0c11c4..9e733de 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -331,7 +331,7 @@ } .main-content { - flex: 0 0 auto; + flex: 1 0 auto; padding: $spacing-lg; display: flex; flex-direction: column;