Skip to content

Commit 27a056a

Browse files
committed
style(container): fix container feature responsiveness
1 parent dee9e14 commit 27a056a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

api/api/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"version": "v1",
55
"status": "active",
6-
"release_date": "2025-05-03T21:31:55.074534+05:30",
6+
"release_date": "2025-05-04T14:01:41.985272+05:30",
77
"end_of_life": "0001-01-01T00:00:00Z",
88
"changes": [
99
"Initial API version"

view/app/containers/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const FeaturedContainers = ({
157157
}: FeaturedContainersProps) => {
158158
return (
159159
<Carousel
160-
className="mx-auto mb-10 w-full"
160+
className="mx-auto mb-10 w-full max-w-[calc(100vw-2rem)] sm:max-w-[calc(100vw-3rem)] lg:max-w-[calc(100vw-4rem)]"
161161
opts={{
162162
loop: true
163163
}}
@@ -167,9 +167,9 @@ const FeaturedContainers = ({
167167
})
168168
]}
169169
>
170-
<CarouselContent>
170+
<CarouselContent className="-ml-2 md:-ml-4">
171171
{containers.map((container) => (
172-
<CarouselItem key={container.id}>
172+
<CarouselItem key={container.id} className="pl-2 md:pl-4">
173173
<div className="p-0">
174174
<ContainerCard
175175
container={container}
@@ -241,12 +241,12 @@ export default function ContainersPage() {
241241
}
242242

243243
return (
244-
<div className="min-h-screen">
245-
<div className="relative">
246-
<div className="container mx-auto py-6 relative z-10">
247-
<div className="flex items-center justify-between mb-6">
244+
<div className="min-h-screen w-full overflow-x-hidden">
245+
<div className="relative w-full">
246+
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8 py-6 relative z-10">
247+
<div className="flex items-center justify-between mb-6 flex-wrap gap-4">
248248
<h1 className="text-2xl font-bold">{t('containers.title')}</h1>
249-
<div className="flex items-center gap-2">
249+
<div className="flex items-center gap-2 flex-wrap">
250250
<Button onClick={handleRefresh} variant="outline" size="sm" disabled={isRefreshing}>
251251
{isRefreshing ? (
252252
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
@@ -280,7 +280,7 @@ export default function ContainersPage() {
280280
/>
281281
)}
282282
{remainingContainers.length > 0 && (
283-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
283+
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
284284
{remainingContainers.map((container) => (
285285
<ContainerCard
286286
key={container.id}

0 commit comments

Comments
 (0)