refactor: standardize quotation marks in pnpm-lock.yaml and improve code formatting across various components; enhance readability and maintain consistency in code style
This commit is contained in:
@@ -93,7 +93,7 @@ function SidebarContent({
|
||||
"w-full justify-start gap-3 h-12 rounded-2xl px-3",
|
||||
isActive &&
|
||||
"bg-gradient-to-r from-primary/15 via-primary/10 to-primary/5 border-2 border-primary/30 shadow-lg shadow-primary/10 backdrop-blur-sm",
|
||||
collapsed && "justify-center px-2 w-12 mx-auto"
|
||||
collapsed && "justify-center px-2 w-12 mx-auto",
|
||||
)}
|
||||
>
|
||||
<item.icon
|
||||
@@ -103,7 +103,7 @@ function SidebarContent({
|
||||
<span
|
||||
className={cn(
|
||||
"font-semibold text-sm",
|
||||
isActive && "text-primary font-bold"
|
||||
isActive && "text-primary font-bold",
|
||||
)}
|
||||
>
|
||||
{item.label}
|
||||
@@ -118,7 +118,7 @@ function SidebarContent({
|
||||
<div
|
||||
className={cn(
|
||||
"border-t border-border/30 pt-2",
|
||||
collapsed ? "p-2" : "p-4"
|
||||
collapsed ? "p-2" : "p-4",
|
||||
)}
|
||||
>
|
||||
<Link href="/settings" onClick={handleLinkClick} className="block mb-2">
|
||||
@@ -126,7 +126,7 @@ function SidebarContent({
|
||||
variant="ghost"
|
||||
className={cn(
|
||||
"w-full justify-start gap-3 h-12 rounded-2xl px-3",
|
||||
collapsed && "justify-center px-2 w-12 mx-auto"
|
||||
collapsed && "justify-center px-2 w-12 mx-auto",
|
||||
)}
|
||||
>
|
||||
<Settings className="w-5 h-5 shrink-0" />
|
||||
@@ -141,7 +141,7 @@ function SidebarContent({
|
||||
className={cn(
|
||||
"w-full justify-start gap-3 h-12 rounded-2xl px-3 mb-2",
|
||||
"text-destructive",
|
||||
collapsed && "justify-center px-2 w-12 mx-auto"
|
||||
collapsed && "justify-center px-2 w-12 mx-auto",
|
||||
)}
|
||||
>
|
||||
<LogOut className="w-5 h-5 shrink-0" />
|
||||
@@ -187,13 +187,13 @@ export function Sidebar({ open, onOpenChange }: SidebarProps) {
|
||||
className={cn(
|
||||
"hidden md:flex flex-col h-screen bg-sidebar text-sidebar-foreground border-r border-sidebar-border",
|
||||
"backdrop-blur-xl",
|
||||
collapsed ? "w-16" : "w-64"
|
||||
collapsed ? "w-16" : "w-64",
|
||||
)}
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center border-b border-border/30",
|
||||
collapsed ? "justify-center p-4" : "justify-between p-6"
|
||||
collapsed ? "justify-center p-4" : "justify-between p-6",
|
||||
)}
|
||||
>
|
||||
{!collapsed && (
|
||||
|
||||
Reference in New Issue
Block a user