mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
hide scrollbar in command
This commit is contained in:
@@ -92,7 +92,9 @@ const TechIcon = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className={`inline-flex items-center text-lg ${className || ""}`}>{icon}</span>
|
<span className={`inline-flex items-center text-lg ${className || ""}`}>
|
||||||
|
{icon}
|
||||||
|
</span>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -921,14 +923,14 @@ const StackArchitect = () => {
|
|||||||
<span className="mr-2 select-none text-green-600 dark:text-green-400">
|
<span className="mr-2 select-none text-green-600 dark:text-green-400">
|
||||||
$
|
$
|
||||||
</span>
|
</span>
|
||||||
<code className="inline-flex items-center whitespace-pre break-words text-gray-700 text-xs sm:text-sm dark:text-gray-300">
|
<code className="no-scrollbar inline-flex items-center overflow-x-auto whitespace-pre break-words text-gray-700 text-xs sm:text-sm dark:text-gray-300">
|
||||||
{command}
|
{command}
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={copyToClipboard}
|
onClick={copyToClipboard}
|
||||||
className="absolute right-1 top-1/2 -translate-y-1/2 rounded p-1 text-gray-500 transition-colors hover:bg-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200"
|
className="-translate-y-1/2 absolute top-1/2 right-1 rounded p-1 text-gray-500 transition-colors hover:bg-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200"
|
||||||
title={copied ? "Copied!" : "Copy command"}
|
title={copied ? "Copied!" : "Copy command"}
|
||||||
>
|
>
|
||||||
{copied ? (
|
{copied ? (
|
||||||
@@ -966,7 +968,11 @@ const StackArchitect = () => {
|
|||||||
<TechIcon
|
<TechIcon
|
||||||
icon={tech.icon}
|
icon={tech.icon}
|
||||||
name={tech.name}
|
name={tech.name}
|
||||||
className={tech.icon.startsWith("/icon/") ? "h-3 w-3" : "h-3 w-3 text-xs"}
|
className={
|
||||||
|
tech.icon.startsWith("/icon/")
|
||||||
|
? "h-3 w-3"
|
||||||
|
: "h-3 w-3 text-xs"
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
{tech.name}
|
{tech.name}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -70,3 +70,11 @@
|
|||||||
background-position: 200% 50%;
|
background-position: 200% 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.no-scrollbar {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user