File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed
app/[locale]/download/components Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ const TabsClient = ({ architectures, translations }: TabsClientProps) => {
166166 value = { currentArch }
167167 onValueChange = { updateArchitecture }
168168 >
169+ { /* Desktop tabs - horizontal */ }
169170 < TabsList className = "sm:flex justify-center gap-4 hidden" >
170171 { Object . keys ( architectures ) . map ( ( arch ) => (
171172 < TabsTrigger
@@ -176,18 +177,22 @@ const TabsClient = ({ architectures, translations }: TabsClientProps) => {
176177 </ TabsTrigger >
177178 ) ) }
178179 </ TabsList >
179- < div className = "flex justify-center sm:hidden" >
180- < TabsList className = "flex justify-start gap-4 overflow-x-auto px-2" >
181- { Object . keys ( architectures ) . map ( ( arch ) => (
182- < TabsTrigger
183- key = { arch }
184- value = { arch }
185- className = "flex-shrink-0"
186- >
187- { translations . tabsShortened [ arch ] }
188- </ TabsTrigger >
189- ) ) }
190- </ TabsList >
180+
181+ { /* Mobile tabs - vertical stack */ }
182+ < div className = "sm:hidden space-y-2" >
183+ { Object . keys ( architectures ) . map ( ( arch ) => (
184+ < button
185+ key = { arch }
186+ onClick = { ( ) => updateArchitecture ( arch ) }
187+ className = { `w-full text-left py-3 px-4 rounded-md border transition-colors ${
188+ currentArch === arch
189+ ? "bg-primary text-primary-foreground border-primary"
190+ : "bg-background border-border hover:bg-muted"
191+ } `}
192+ >
193+ { translations . tabsShortened [ arch ] }
194+ </ button >
195+ ) ) }
191196 </ div >
192197 { Object . entries ( architectures ) . map ( ( [ arch , data ] ) => (
193198 < TabsContent
You can’t perform that action at this time.
0 commit comments