From d58adb3ed7ea73699e2bab9d9f317f6fcdfd582a Mon Sep 17 00:00:00 2001 From: ximu3 Date: Fri, 13 Dec 2024 21:57:47 +0800 Subject: [PATCH] fix: Initial fixes related to low-resolution screens --- src/renderer/src/components/Game/Header.tsx | 2 +- .../Game/Overview/RelatedSites/RelatedSitesCard.tsx | 2 +- src/renderer/src/components/Game/Overview/Tags/TagsCard.tsx | 2 +- .../Game/Overview/description/DescriptionCard.tsx | 2 +- src/renderer/src/components/Game/Overview/main.tsx | 2 +- src/renderer/src/components/Game/Record/ChartCard.tsx | 2 +- src/renderer/src/components/Game/Save/main.tsx | 6 +++--- src/renderer/src/components/Game/main.tsx | 2 +- src/renderer/src/pages/GameAdder/GameList.tsx | 2 +- src/renderer/src/pages/GameAdder/ScreenshotList.tsx | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/renderer/src/components/Game/Header.tsx b/src/renderer/src/components/Game/Header.tsx index 4700916..25d06cf 100644 --- a/src/renderer/src/components/Game/Header.tsx +++ b/src/renderer/src/components/Game/Header.tsx @@ -77,7 +77,7 @@ export function Header({ gameId, className }: { gameId: string; className?: stri className )} > -
+
{name} {showOriginalNameInGameHeader && originalName && originalName !== name && ( diff --git a/src/renderer/src/components/Game/Overview/RelatedSites/RelatedSitesCard.tsx b/src/renderer/src/components/Game/Overview/RelatedSites/RelatedSitesCard.tsx index 72446ce..988b018 100644 --- a/src/renderer/src/components/Game/Overview/RelatedSites/RelatedSitesCard.tsx +++ b/src/renderer/src/components/Game/Overview/RelatedSites/RelatedSitesCard.tsx @@ -31,7 +31,7 @@ export function RelatedSitesCard({
{isEqual(relatedSites, []) || isEqual(relatedSites, [{ label: '', url: '' }]) diff --git a/src/renderer/src/components/Game/Overview/Tags/TagsCard.tsx b/src/renderer/src/components/Game/Overview/Tags/TagsCard.tsx index 378ff09..ce7ac6a 100644 --- a/src/renderer/src/components/Game/Overview/Tags/TagsCard.tsx +++ b/src/renderer/src/components/Game/Overview/Tags/TagsCard.tsx @@ -26,7 +26,7 @@ export function TagsCard({
diff --git a/src/renderer/src/components/Game/Overview/description/DescriptionCard.tsx b/src/renderer/src/components/Game/Overview/description/DescriptionCard.tsx index cf40ed9..a92d766 100644 --- a/src/renderer/src/components/Game/Overview/description/DescriptionCard.tsx +++ b/src/renderer/src/components/Game/Overview/description/DescriptionCard.tsx @@ -26,7 +26,7 @@ export function DescriptionCard({
-
+
diff --git a/src/renderer/src/components/Game/Record/ChartCard.tsx b/src/renderer/src/components/Game/Record/ChartCard.tsx index 9357bbc..f7654af 100644 --- a/src/renderer/src/components/Game/Record/ChartCard.tsx +++ b/src/renderer/src/components/Game/Record/ChartCard.tsx @@ -68,7 +68,7 @@ export function ChartCard({ )} diff --git a/src/renderer/src/components/Game/Save/main.tsx b/src/renderer/src/components/Game/Save/main.tsx index f97aba5..c6a81c8 100644 --- a/src/renderer/src/components/Game/Save/main.tsx +++ b/src/renderer/src/components/Game/Save/main.tsx @@ -51,12 +51,12 @@ export function Save({ gameId }: { gameId: string }): JSX.Element { return (
-
+
- + 日期 - 备注 + 备注 操作 diff --git a/src/renderer/src/components/Game/main.tsx b/src/renderer/src/components/Game/main.tsx index 8cfb0c7..d3dbf67 100644 --- a/src/renderer/src/components/Game/main.tsx +++ b/src/renderer/src/components/Game/main.tsx @@ -27,7 +27,7 @@ export function Game({ gameId }: { gameId: string }): JSX.Element { className={cn( background ? 'relative bg-background h-[calc(100vh-64px)]' - : 'relative bg-background h-[calc(100-64pxvh)]' + : 'relative bg-background h-[calc(100vh-64px)]' )} >
diff --git a/src/renderer/src/pages/GameAdder/GameList.tsx b/src/renderer/src/pages/GameAdder/GameList.tsx index b5a8588..283f83b 100644 --- a/src/renderer/src/pages/GameAdder/GameList.tsx +++ b/src/renderer/src/pages/GameAdder/GameList.tsx @@ -14,7 +14,7 @@ export function GameList(): JSX.Element {
- +
diff --git a/src/renderer/src/pages/GameAdder/ScreenshotList.tsx b/src/renderer/src/pages/GameAdder/ScreenshotList.tsx index d73e91f..c59fbbb 100644 --- a/src/renderer/src/pages/GameAdder/ScreenshotList.tsx +++ b/src/renderer/src/pages/GameAdder/ScreenshotList.tsx @@ -72,7 +72,7 @@ export function ScreenshotList(): JSX.Element {
-
+
{screenshotList.length !== 0 ? ( screenshotList.map((image) => (