Skip to content

Commit

Permalink
fix GameHeader and BatchAdder on small size
Browse files Browse the repository at this point in the history
  • Loading branch information
fishshi committed Dec 16, 2024
1 parent d9a1969 commit 4687394
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/Game/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function Header({ gameId, className }: { gameId: string; className?: stri
className
)}
>
<div className={cn('flex flex-row gap-3 justify-center max-w-[46vw]')}>
<div className={cn('flex flex-row gap-3 grow overflow-hidden')}>
<div className={cn('truncate')}>
<span className={cn('font-bold text-2xl text-accent-foreground')}>{name}</span>
{showOriginalNameInGameHeader && originalName && originalName !== name && (
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/GameBatchAdder/GameList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function GameList(): JSX.Element {
})
}
return (
<div className="w-[870px] h-[670px] 3xl:h-[812px]">
<div className="w-[870px] h-[75vh]">
<div className="py-[10px]">
<GameListTable />
<div className="flex flex-row-reverse pt-[20px]">
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/GameBatchAdder/GameListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function GameListTable(): JSX.Element {
</Table>
<Table>
<TableBody>
<div className={cn('overflow-auto scrollbar-base w-full', 'h-[570px] 3xl:h-[712px]')}>
<div className={cn('overflow-auto scrollbar-base w-full', 'h-[calc(75vh-100px)]')}>
{games.map((game) => (
<GameListItem key={game.dataId} game={game} />
))}
Expand Down

0 comments on commit 4687394

Please sign in to comment.