Skip to content

Commit

Permalink
fix: delete unused className and snap snap
Browse files Browse the repository at this point in the history
  • Loading branch information
amphikapha committed Oct 19, 2024
1 parent d5b82a3 commit cc2f66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/AnnouncementCard/AnnouncementCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
export let createdAt: string;
export let createdBy: string;
export let linkHref: string;
export let className = '';
function formatDate(dateString: string): string {
return dayjs(dateString).locale('th').format('DD MMMM BBBB');
Expand All @@ -39,7 +38,7 @@
<a
href={linkHref}
target="_blank"
class="${className} h-[450px] w-[300px] max-md:w-[140px] max-md:h-[222px] bg-white text-sucu-gray-dark rounded shadow-card hover:shadow-card-shadow-hover transition-shadow flex flex-col items-center"
class="h-[450px] w-[300px] max-md:w-[140px] max-md:h-[222px] bg-white text-sucu-gray-dark rounded shadow-card hover:shadow-card-shadow-hover transition-shadow flex flex-col items-center"
>
<div class="p-3 h-[300px] w-[300px] max-md:w-full max-md:h-auto max-md:p-2">
{#if imageURL || imageURL.length > 0}
Expand Down
3 changes: 1 addition & 2 deletions src/routes/home/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</div>
<div
bind:this={container}
class="flex h-[257px] px-2.5 gap-2.5 overflow-x-auto items-center scrollbar-none snap-x snap-proximity"
class="flex h-[257px] px-2.5 gap-2.5 overflow-x-auto items-center scrollbar-none"
>
{#each mockAnnouncementCard as card}
<AnnouncementCard
Expand All @@ -141,7 +141,6 @@
createdAt={card.createdAt}
createdBy={card.createdBy}
linkHref={card.linkHref}
className="snap-start"
/>
{/each}
</div>
Expand Down

0 comments on commit cc2f66b

Please sign in to comment.