Skip to content

Commit

Permalink
Fix: games and apps page looking weird on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Jul 30, 2024
1 parent 2a83736 commit b5d277d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/apps.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const images = import.meta.glob<{ default: ImageMetadata }>(
<input oninput="searchApps(this.value)" class="flex flex-grow h-[42px] text-[14px] border-none text-[--text-color] bg-inherit outline-none" placeholder="Search apps" id="app-input"></input>
</div>
</div>
<div class="mt-[10px] mb-[30px] w-full grid justify-between gap-[20px] grid-cols-[repeat(auto-fill,166px)]">
<div class="mt-[10px] mb-[30px] w-full grid justify-center md:justify-between gap-[20px] grid-cols-[repeat(2,60%)] md:grid-cols-[repeat(auto-fill,166px)]">
<div data-name="google" onclick="openApp('https://google.com')" class="transition-all hover:scale-105 h-[166px] w-[166px] rounded-[5px] border-transparent bg-cover cursor-pointer">
<Image loading="eager" class="rounded-[5px]" src={images["/src/assets/apps/google.jpg"]()} alt="Google Logo" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/gs/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (!GAMES_LINK) {
<input oninput="searchGames(this.value)" class="flex flex-grow h-[42px] text-[14px] border-none text-[--text-color] bg-inherit outline-none" placeholder="Search games" id="app-input"></input>
</div>
</div>
<div class="mt-[10px] pb-[60px] w-full grid justify-between gap-[20px] grid-cols-[repeat(auto-fill,166px)]">
<div class="mt-[10px] pb-[60px] w-full grid justify-center md:justify-between gap-[20px] grid-cols-[repeat(2,60%)] md:grid-cols-[repeat(auto-fill,166px)]">
{games.default.map((game) => (
<a href={`/gs/${btoa(game.name)}?py=${game.proxy}&url=${btoa(game.url)}&bf=${btoa(game.baseFile)}`} data-name={game.name} class="transition-all hover:scale-105 h-[166px] w-[166px] rounded-[5px] border-transparent bg-cover cursor-pointer">
<Image loading="lazy" class="object-cover w-[166px] h-[166px] rounded-[5px]" src={images[game.img]()} alt={`${game.name}'s logo`} />
Expand Down

0 comments on commit b5d277d

Please sign in to comment.