This commit is contained in:
Arunavo Ray
2025-07-09 00:47:12 +05:30
parent e4f79720d4
commit eed26e4368
2 changed files with 20 additions and 16 deletions

View File

@@ -127,13 +127,16 @@ export function Installation() {
<div className="flex-grow min-w-0">
<h3 className="font-semibold mb-2 text-sm sm:text-base">{step.title}</h3>
<div className="relative group">
<pre className="bg-muted/50 rounded-lg p-3 sm:p-4 pr-12 overflow-x-auto text-xs sm:text-sm">
<code className="break-all sm:break-normal">{step.command}</code>
<div className="relative overflow-hidden rounded-lg">
<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">
<code className="block whitespace-nowrap">{step.command}</code>
</pre>
{/* Scroll indicator gradient for mobile */}
<div className="absolute inset-y-0 right-0 w-8 bg-gradient-to-l from-muted/50 to-transparent pointer-events-none sm:hidden" />
<Button
variant="ghost"
size="icon"
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"
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"
onClick={() => copyToClipboard(step.command, step.id)}
>
{copiedCommand === step.id ? (
@@ -145,6 +148,7 @@ export function Installation() {
</div>
</div>
</div>
</div>
{index < installMethods[activeMethod].steps.length - 1 && (
<div className="absolute left-4 top-10 bottom-0 w-[1px] bg-border -z-10" />
)}

View File

@@ -110,7 +110,7 @@ const structuredData = {
</script>
<!-- 100% privacy-first analytics -->
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<script async src="https://scripts.simpleanalyticscdn.com/latest.js" is:inline></script>
</head>
<body class="min-h-screen bg-background text-foreground antialiased">