mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
feat: add disableTooltip prop to sidebar components and streamline mobile sidebar button functionality
This commit is contained in:
parent
21eec210cc
commit
6857c1d7e8
5 changed files with 51 additions and 41 deletions
|
|
@ -35,14 +35,14 @@ export function SidebarHeader({
|
|||
const searchSpaceId = params.search_space_id as string;
|
||||
|
||||
return (
|
||||
<div className={cn("flex shrink-0 items-center", className)}>
|
||||
<div className={cn("flex min-w-0 flex-1 items-center", className)}>
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
className={cn(
|
||||
"flex h-auto items-center justify-between gap-2 overflow-hidden py-1.5 font-semibold",
|
||||
isCollapsed ? "w-10" : "w-50"
|
||||
"flex h-auto w-full items-center justify-between gap-1 overflow-hidden py-1.5 font-semibold",
|
||||
isCollapsed && "w-10"
|
||||
)}
|
||||
>
|
||||
<span className="truncate text-base">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue