Skip to content

Commit a5f438a

Browse files
responsiveness
1 parent 8571f77 commit a5f438a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/components/CatalogueContent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ const CatalogueContent = () => {
167167
}, [subject, searchParams]);
168168

169169
return (
170-
<div className="min-h-screen p-8">
171-
<div className="mb-4 flex flex-col md:flex-row w-full items-center justify-center gap-10">
172-
<div className="w-full md:w-[576px]">
170+
<div className="min-h-screen px-2 md:p-8">
171+
<div className="mb-4 flex flex-row w-full items-center md:justify-center md:gap-10">
172+
<div className="w-[120%] md:w-[576px]">
173173
<SearchBar />
174174
</div>
175175
{subject && filterOptions && (
@@ -190,7 +190,7 @@ const CatalogueContent = () => {
190190
<p>Loading papers...</p>
191191
) : papers.length > 0 ? (
192192
<>
193-
<div className="mb-4 md:mr-4 flex justify-center md:justify-end gap-2">
193+
<div className="mb-4 2xl:mr-4 flex justify-center md:justify-end gap-2">
194194
<Button variant="outline" onClick={handleSelectAll}>
195195
Select All
196196
</Button>

src/components/FilterDialog.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from "@/components/ui/dialog";
1010
import { type Filters } from "@/interface";
1111
import { useEffect, useState } from "react";
12+
import { SlidersHorizontal } from "lucide-react";
1213

1314
export const FilterDialog = ({
1415
subject,
@@ -72,7 +73,12 @@ export const FilterDialog = ({
7273
return (
7374
<Dialog open={open} onOpenChange={setOpen}>
7475
<DialogTrigger asChild>
75-
<Button variant="outline">Filters</Button>
76+
<Button variant="outline" className="py-6 rounded-xl">
77+
<span className="hidden md:block">Filters</span>
78+
<span className="block md:hidden">
79+
<SlidersHorizontal />
80+
</span>
81+
</Button>
7682
</DialogTrigger>
7783
<DialogContent className="max-h-[650px] overflow-y-hidden">
7884
<DialogHeader>

0 commit comments

Comments
 (0)