Skip to content

Commit b4282e9

Browse files
committed
Enhance presets layout with horizontal scrolling and update styling for better responsiveness
1 parent acfad36 commit b4282e9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ export default function Home() {
7979
<div className="text-sm font-medium text-pink-400 mb-2 uppercase tracking-wide">
8080
Fresh Presets
8181
</div>
82-
<div className="flex gap-4">
82+
<div className="flex gap-4 overflow-x-auto scrollbar-hide -mx-4 px-4">
8383
{latestPresets.map((preset) => (
8484
<Link
8585
key={preset.id}
8686
href={createPresetLink(preset)}
87-
className="flex-1 min-w-[180px] max-w-[250px] bg-gray-800/50 backdrop-blur-sm rounded-lg p-4 border border-white/10 hover:border-pink-500/50 hover:bg-gray-800/70 transition-all group"
87+
className="flex-shrink-0 w-[180px] sm:flex-1 sm:min-w-[180px] sm:max-w-[250px] bg-gray-800/50 backdrop-blur-sm rounded-lg p-4 border border-white/10 hover:border-pink-500/50 hover:bg-gray-800/70 transition-all group"
8888
>
8989
<div className="text-sm font-semibold text-gray-300 group-hover:text-pink-400 transition-colors mb-1">
9090
{preset.origin.artist.title}

styles/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,13 @@
2121
background-color: rgba(255, 255, 255, 0.2);
2222
border-radius: 3px;
2323
}
24+
25+
/* Hide scrollbar utility */
26+
.scrollbar-hide {
27+
-ms-overflow-style: none;
28+
scrollbar-width: none;
29+
}
30+
31+
.scrollbar-hide::-webkit-scrollbar {
32+
display: none;
33+
}

0 commit comments

Comments
 (0)