Skip to content

Commit

Permalink
fix progress bar on install btn
Browse files Browse the repository at this point in the history
  • Loading branch information
JMBeresford committed Nov 17, 2024
1 parent 52d9f52 commit 9e449f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ export const InstallGameButton = forwardRef(
}

if (installState === InstallationStatus.INSTALLING) {
return (
<div className="absolute inset-0 grid place-items-center px-2">
<Progress value={installProgress} className="h-2" />
</div>
);
return <Progress value={installProgress} className="h-2" />;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/client/web/src/components/game-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function GameList(props: { games: GameWithMetadata[] }) {
<div className="rounded-md overflow-hidden w-fit pointer-events-auto touch-auto z-50">
<ActionButton
size="sm"
className="text-md min-w-[100px]"
className='text-md min-w-[100px] [&_div[role="progressbar"]_>_*]:bg-primary-foreground'
game={game}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ function Inner() {
}}
game={game}
className={cn(
"w-auto text-5xl h-[unset] *:first:hidden uppercase px-8 py-4",
"opacity-80 focus-hover:opacity-100 transition-all",
"w-auto text-5xl h-[unset] [&_svg]:hidden uppercase px-8 py-4",
"opacity-80 focus-hover:opacity-100 transition-all h-full",
'[&_div[role="progressbar"]]:w-[6ch] [&_div[role="progressbar"]_>_*]:bg-primary-foreground',
)}
/>
</HotkeyLayer>
Expand Down

0 comments on commit 9e449f0

Please sign in to comment.