feat: hide scrollbar when needed

This commit is contained in:
Pablo Lara
2024-09-27 07:47:17 +02:00
parent 1f75d70d4e
commit 840df1dab6
4 changed files with 14 additions and 4 deletions
+4 -1
View File
@@ -12,6 +12,7 @@ export const SnippetIdProvider: React.FC<SnippetIdProviderProps> = ({
return (
<Snippet
className="flex items-center py-0"
color="default"
size="sm"
variant="flat"
radius="lg"
@@ -21,7 +22,9 @@ export const SnippetIdProvider: React.FC<SnippetIdProviderProps> = ({
>
<p className="flex items-center space-x-2">
<IdIcon size={16} />
<span className="text-sm max-w-24 overflow-x-scroll">{providerId}</span>
<span className="text-sm max-w-24 overflow-x-scroll no-scrollbar">
{providerId}
</span>
</p>
</Snippet>
);
+2 -2
View File
@@ -42,7 +42,7 @@ export const SidebarWrap = () => {
return (
<div
className={clsx(
"relative flex h-screen flex-col !border-r-small border-divider transition-width",
"relative flex h-screen flex-col !border-r-small border-divider transition-width bg-prowler-blue-midnight",
{
"w-72 p-6": !isCompact,
"w-16 items-center px-2 py-6": isCompact,
@@ -79,7 +79,7 @@ export const SidebarWrap = () => {
/>{" "}
</Link>
<ScrollShadow className="-mr-6 h-full max-h-full py-6 pr-6">
<ScrollShadow hideScrollBar className="-mr-6 h-full max-h-full py-6 pr-6">
<Sidebar
defaultSelectedKey="overview"
isCompact={isCompact}