Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/layout/public-support-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function PublicSupportSidebar({ className, activeTab, onTabChange }: Publ
// the TopBar and the profile block stays pinned to the bottom.
className={`${isCollapsed ? "w-16" : "w-64"} bg-[#FAFAFA] border-r border-sidebar-border flex flex-col transition-all duration-300 self-stretch overflow-hidden shrink-0 ${className}`}
>
<div className="px-4 pt-4 pb-3 flex items-center justify-end min-h-[40px] shrink-0">
<div className={`${isCollapsed ? "justify-center" : "px-4 justify-end"} pt-4 pb-3 flex items-center min-h-[40px] shrink-0`}>
{!isCollapsed ? (
<Button
variant="ghost"
Expand Down
6 changes: 3 additions & 3 deletions src/components/layout/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function Sidebar({ className }: SidebarProps) {
// `self-stretch` and `h-full` are equivalent — so this is a no-op there.
className={`${isCollapsed ? "w-16" : "w-64"} bg-[#FAFAFA] border-r border-sidebar-border flex flex-col transition-all duration-300 self-stretch overflow-hidden shrink-0 ${className}`}
>
<div className="px-4 pt-4 pb-3 flex items-center justify-end min-h-[40px] shrink-0">
<div className={`${isCollapsed ? "justify-center px-0" : "justify-end px-4"} pt-4 pb-3 flex items-center min-h-[40px] shrink-0`}>
{!isCollapsed ? (
<Button
variant="ghost"
Expand Down Expand Up @@ -392,7 +392,7 @@ export function Sidebar({ className }: SidebarProps) {
) : (
<Link href={item.href} onClick={() => setExpandedItems([])}>
<div
className={`flex items-center gap-3 px-3 py-2.5 min-h-[40px] rounded-md text-sm font-medium transition-colors ${
className={`flex items-center ${isCollapsed ? "justify-center" : "gap-3"} px-3 py-2.5 min-h-[40px] rounded-md text-sm font-medium transition-colors ${
isActive ? activeClasses : inactiveClasses
}`}
title={isCollapsed ? item.name : undefined}
Expand All @@ -413,7 +413,7 @@ export function Sidebar({ className }: SidebarProps) {
<div className="px-3 py-2.5 border-t border-sidebar-border space-y-0.5 shrink-0">
{bottomItems.map((item) => {
const isActive = item.href !== "#" && pathname === item.href
const className = `flex items-center gap-3 px-3 py-2.5 min-h-[40px] text-sm font-medium rounded-md cursor-pointer transition-colors ${
const className = `flex items-center ${isCollapsed ? "justify-center" : "gap-3"} px-3 py-2.5 min-h-[40px] text-sm font-medium rounded-md cursor-pointer transition-colors ${
isActive ? "bg-bg-subtle text-sidebar-foreground" : "text-[#55555E] hover:bg-bg-subtle hover:text-sidebar-foreground"
}`
const content = (
Expand Down