File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -127,21 +127,25 @@ export function Installation() {
127
127
< div className = "flex-grow min-w-0" >
128
128
< h3 className = "font-semibold mb-2 text-sm sm:text-base" > { step . title } </ h3 >
129
129
< div className = "relative group" >
130
- < pre className = "bg-muted/50 rounded-lg p-3 sm:p-4 pr-12 overflow-x-auto text-xs sm:text-sm" >
131
- < code className = "break-all sm:break-normal" > { step . command } </ code >
132
- </ pre >
133
- < Button
134
- variant = "ghost"
135
- size = "icon"
136
- className = "absolute top-1 right-1 sm:top-2 sm:right-2 w-8 h-8 sm:w-9 sm:h-9 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity"
137
- onClick = { ( ) => copyToClipboard ( step . command , step . id ) }
138
- >
139
- { copiedCommand === step . id ? (
140
- < Check className = "h-3 w-3 sm:h-4 sm:w-4 text-green-600" />
141
- ) : (
142
- < Copy className = "h-3 w-3 sm:h-4 sm:w-4" />
143
- ) }
144
- </ Button >
130
+ < div className = "relative overflow-hidden rounded-lg" >
131
+ < pre className = "bg-muted/50 p-3 sm:p-4 pr-10 sm:pr-12 overflow-x-auto text-[11px] sm:text-sm font-mono scrollbar-thin scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent" >
132
+ < code className = "block whitespace-nowrap" > { step . command } </ code >
133
+ </ pre >
134
+ { /* Scroll indicator gradient for mobile */ }
135
+ < div className = "absolute inset-y-0 right-0 w-8 bg-gradient-to-l from-muted/50 to-transparent pointer-events-none sm:hidden" />
136
+ < Button
137
+ variant = "ghost"
138
+ size = "icon"
139
+ className = "absolute top-1 right-1 sm:top-2 sm:right-2 w-7 h-7 sm:w-9 sm:h-9 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity z-10"
140
+ onClick = { ( ) => copyToClipboard ( step . command , step . id ) }
141
+ >
142
+ { copiedCommand === step . id ? (
143
+ < Check className = "h-3 w-3 sm:h-4 sm:w-4 text-green-600" />
144
+ ) : (
145
+ < Copy className = "h-3 w-3 sm:h-4 sm:w-4" />
146
+ ) }
147
+ </ Button >
148
+ </ div >
145
149
</ div >
146
150
</ div >
147
151
</ div >
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ const structuredData = {
110
110
</script >
111
111
112
112
<!-- 100% privacy-first analytics -->
113
- <script async src =" https://scripts.simpleanalyticscdn.com/latest.js" ></script >
113
+ <script async src =" https://scripts.simpleanalyticscdn.com/latest.js" is:inline ></script >
114
114
</head >
115
115
116
116
<body class =" min-h-screen bg-background text-foreground antialiased" >
You can’t perform that action at this time.
0 commit comments