Skip to content

Commit

Permalink
fix: mobile article filters
Browse files Browse the repository at this point in the history
  • Loading branch information
iankressin committed Aug 21, 2024
1 parent 0bc2aef commit b4c5935
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions research/src/components/SideMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,25 @@
</div>
</div>

<div class="flex gap-2 block lg:hidden mb-8">
<div class="flex flex-wrap gap-2 block lg:hidden mb-8">
<button
class="mr-2 font-bold flex items-center gap-0.5 text-sm bg-[#1B1B1B] text-gray-100 w-fit px-2 py-1.5 rounded-md hover:text-green hover:bg-black"
class="
mr-2 font-bold flex items-center gap-0.5 text-sm bg-[#1B1B1B]
text-gray-100 min-w-fit px-2 py-1.5 rounded-md hover:text-green
hover:bg-black
"
class:text-green={$categories.length === 0}
on:click={() => clearCategories()}
>
All
</button>
{#each availableCategories as category}
<button
class="mr-2 font-bold flex items-center gap-0.5 text-sm bg-[#1B1B1B] text-gray-100 w-fit px-2 py-1.5 rounded-md hover:text-green hover:bg-black"
class="
mr-2 font-bold flex items-center gap-0.5 text-sm bg-[#1B1B1B]
text-gray-100 min-w-fit px-2 py-1.5 rounded-md hover:text-green
hover:bg-black
"
class:text-green={$categories.includes(category)}
on:click={() => toggleCategory(category)}
>
Expand Down
2 changes: 1 addition & 1 deletion research/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ try {
>
<main class="max-w-screen-3xl m-auto mb-24">
<section class="pt-8 px-6 lg:px-32">
<div class="mb-16">
<div class="mb-8 lg:mb-16">
<h1 class="text-4xl uppercase mb-4">Research</h1>
<p class="text-xl font-bold">
Deep dives and technical analyses on Ethereum,
Expand Down

0 comments on commit b4c5935

Please sign in to comment.