File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -107,22 +107,22 @@ export function Hero() {
107
107
</ div >
108
108
</ div >
109
109
110
- < div className = "absolute bottom-[calc(var(--spacing)*4)] left-1/2 -translate-x-1/2 z-[2] flex flex-row border border-[var(--color-fd-border)] rounded-full bg-[var(--color-fd-card)] p-1 shadow-md shadow-[var(--color-fd-background)]" >
110
+ < div className = "absolute bottom-3 md:bottom- [calc(var(--spacing)*4)] left-1/2 -translate-x-1/2 z-[2] flex flex-row border border-[var(--color-fd-border)] rounded-full bg-[var(--color-fd-card)] p-0.5 md:p- 1 shadow-md shadow-[var(--color-fd-background)] overflow-x-auto max-w-[calc(100%-2rem)] no-scrollbar " >
111
111
{ imageNames . map ( ( name , index ) => (
112
112
< button
113
- key = { `title-${ index } ` }
114
- onClick = { ( ) => setCurrentImage ( index ) }
115
- className = { `px-4 py-2 rounded-full text-sm font-medium transition-all ${
116
- index === currentImage
117
- ? 'bg-[var(--color-fd-accent)] text-[var(--color-fd-accent-foreground)]'
118
- : 'text-[var(--color-fd-muted-foreground)] hover:bg-[var(--color-fd-secondary)] hover:text-[var(--color-fd-secondary-foreground)]'
119
- } `}
120
- aria-label = { `查看${ name } ` }
113
+ key = { `title-${ index } ` }
114
+ onClick = { ( ) => setCurrentImage ( index ) }
115
+ className = { `px-2 md:px- 4 py-1 md:py- 2 rounded-full text-xs md:text- sm font-medium transition-all whitespace-nowrap ${
116
+ index === currentImage
117
+ ? 'bg-[var(--color-fd-accent)] text-[var(--color-fd-accent-foreground)]'
118
+ : 'text-[var(--color-fd-muted-foreground)] hover:bg-[var(--color-fd-secondary)] hover:text-[var(--color-fd-secondary-foreground)]'
119
+ } `}
120
+ aria-label = { `查看${ name } ` }
121
121
>
122
- { name }
122
+ { name }
123
123
</ button >
124
124
) ) }
125
- </ div >
125
+ </ div >
126
126
</ div >
127
127
</ div >
128
128
</ div >
You can’t perform that action at this time.
0 commit comments