Compare commits
1 commit
main
...
studio-sid
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34723f381b |
1 changed files with 10 additions and 8 deletions
|
|
@ -672,11 +672,12 @@ export function AppSidebar() {
|
||||||
// Recents label text at 16px.
|
// Recents label text at 16px.
|
||||||
variant === "project" ? "pl-[39px]" : "pl-3",
|
variant === "project" ? "pl-[39px]" : "pl-3",
|
||||||
variant === "project"
|
variant === "project"
|
||||||
? "group-hover/project-chat-item:pr-8 group-has-[.sidebar-row-action[data-state=open]]/project-chat-item:pr-8"
|
? "group-hover/project-chat-item:pr-6 group-has-[.sidebar-row-action[data-state=open]]/project-chat-item:pr-6"
|
||||||
: isPinned
|
: isPinned
|
||||||
? // Pinned rows show an extra unpin button on hover, so reserve more room.
|
? // Pinned rows show an extra unpin button on hover, so reserve more room.
|
||||||
"group-hover/recent-item:pr-16 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-8"
|
"group-hover/recent-item:pr-16 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-6"
|
||||||
: "group-hover/recent-item:pr-8 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-8",
|
: // Hover room for the kebab only; title keeps one more character.
|
||||||
|
"group-hover/recent-item:pr-6 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-6",
|
||||||
);
|
);
|
||||||
|
|
||||||
const isRenamingThis =
|
const isRenamingThis =
|
||||||
|
|
@ -962,7 +963,8 @@ export function AppSidebar() {
|
||||||
)}
|
)}
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
|
|
||||||
<SidebarGroup className="group-data-[collapsible=icon]:px-0 px-1.5 pt-[9px] pb-px shrink-0">
|
{/* Uniform pl-1.5 pr-2 keeps every hover pill the same width, inset from the edge. */}
|
||||||
|
<SidebarGroup className="group-data-[collapsible=icon]:px-0 pl-1.5 pr-2 pt-[9px] pb-px shrink-0">
|
||||||
<SidebarGroupContent>
|
<SidebarGroupContent>
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<NavItem
|
<NavItem
|
||||||
|
|
@ -1002,7 +1004,7 @@ export function AppSidebar() {
|
||||||
scrolled && "is-scrolled",
|
scrolled && "is-scrolled",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<SidebarGroup className="group-data-[collapsible=icon]:px-0 px-1.5 py-0 shrink-0">
|
<SidebarGroup className="group-data-[collapsible=icon]:px-0 pl-1.5 pr-2 py-0 shrink-0">
|
||||||
<SidebarGroupContent>
|
<SidebarGroupContent>
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<NavItem
|
<NavItem
|
||||||
|
|
@ -1074,7 +1076,7 @@ export function AppSidebar() {
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
</SidebarGroupLabel>
|
</SidebarGroupLabel>
|
||||||
<CollapsibleContent>
|
<CollapsibleContent>
|
||||||
<SidebarGroupContent className="px-1.5">
|
<SidebarGroupContent className="pl-1.5 pr-2">
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<NavItem
|
<NavItem
|
||||||
icon={TestTubeOutlineIcon}
|
icon={TestTubeOutlineIcon}
|
||||||
|
|
@ -1124,7 +1126,7 @@ export function AppSidebar() {
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
</SidebarGroupLabel>
|
</SidebarGroupLabel>
|
||||||
<CollapsibleContent>
|
<CollapsibleContent>
|
||||||
<SidebarGroupContent className="pl-1 pr-1.5">
|
<SidebarGroupContent className="pl-1.5 pr-2">
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
{pinnedChatItems.map((item) =>
|
{pinnedChatItems.map((item) =>
|
||||||
renderChatSidebarItem(item, "recent"),
|
renderChatSidebarItem(item, "recent"),
|
||||||
|
|
@ -1146,7 +1148,7 @@ export function AppSidebar() {
|
||||||
</CollapsibleTrigger>
|
</CollapsibleTrigger>
|
||||||
</SidebarGroupLabel>
|
</SidebarGroupLabel>
|
||||||
<CollapsibleContent>
|
<CollapsibleContent>
|
||||||
<SidebarGroupContent className="pl-1 pr-1.5">
|
<SidebarGroupContent className="pl-1.5 pr-2">
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
{recentChatItems.map((item) =>
|
{recentChatItems.map((item) =>
|
||||||
renderChatSidebarItem(item, "recent"),
|
renderChatSidebarItem(item, "recent"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue