Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test - when the screen size is narrow, the clips section will be 2 columns. #3091

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/passport/components/EditPassportSkinShowcase.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
{i18n('PinClipsToShowcaseHelper')}
</p>
<ul
class="grid gap-2 lg:gap-4 justify-between items-center grid-cols-3 grid-rows-3"
class="grid gap-2 lg:gap-4 justify-between items-center grid-cols-2 lg:grid-cols-3 grid-rows-3"
>
<button
class="rounded bg-surface-400 aspect-square flex items-center justify-center"
Expand All @@ -232,7 +232,7 @@
<li class="rounded bg-surface-400 aspect-square opacity-50"></li>
</ul>
{:else if !isFetchingPurchasedClips && !profileFetching && profile.skins?.at(skinIndex)?.clips?.length}
<ul class="grid gap-2 lg:gap-4 grid-cols-3">
<ul class="grid gap-2 lg:gap-4 grid-cols-2 lg:grid-cols-3">
{#each clips(profile) ?? [] as clip, i}
<li id={`assetsPassportItems-${i.toString()}`} class="empty:hidden">
<PassportAsset
Expand Down
2 changes: 1 addition & 1 deletion src/pages/passport/components/PassportClips.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ onMounted(async () => {
skinSection === 'spotlight',
},
{
['grid gap-1 lg:gap-4 grid-cols-3 content-stretch items-center gap-y-2 lg:gap-y-8']:
['grid gap-1 lg:gap-4 grid-cols-2 lg:grid-cols-3 content-stretch items-center gap-y-2 lg:gap-y-8']:
skinSection === 'clips',
},
]"
Expand Down