Skip to content

Commit eed26e4

Browse files
committed
updates
1 parent e4f7972 commit eed26e4

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

www/src/components/Installation.tsx

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -127,21 +127,25 @@ export function Installation() {
127127
<div className="flex-grow min-w-0">
128128
<h3 className="font-semibold mb-2 text-sm sm:text-base">{step.title}</h3>
129129
<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>
145149
</div>
146150
</div>
147151
</div>

www/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const structuredData = {
110110
</script>
111111

112112
<!-- 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>
114114
</head>
115115

116116
<body class="min-h-screen bg-background text-foreground antialiased">

0 commit comments

Comments
 (0)