Skip to content

Commit faa4df1

Browse files
committed
floating
1 parent 2fab361 commit faa4df1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dashboard/ai-analytics/src/components/ui/floating-notification.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export function FloatingNotification({
6565
<div
6666
ref={containerRef}
6767
className={cn(
68-
'fixed flex items-center gap-6 bg-[#262626] shadow-lg border-l-[3px] border-l-[#27F795] pl-4',
69-
isCollapsed ? 'w-auto' : 'w-[500px]',
68+
'fixed flex items-center gap-4 bg-[#262626] shadow-lg border-l-[3px] border-l-[#27F795] pl-4',
69+
isCollapsed ? 'w-auto' : 'w-auto',
7070
className
7171
)}
7272
style={{
@@ -76,21 +76,21 @@ export function FloatingNotification({
7676
}}
7777
onMouseDown={handleMouseDown}
7878
>
79-
<div className="flex items-center gap-6">
79+
<div className="flex items-center gap-4">
8080
<div className="text-sm text-muted-foreground"></div>
8181
{!isCollapsed && (
8282
<div className="text-sm text-muted-foreground !-ml-2">{title}</div>
8383
)}
8484
</div>
8585

8686
{!isCollapsed && (
87-
<div className="flex items-center gap-2">
87+
<div className="flex items-center gap-0">
8888
{links.telegram && (
8989
<a
9090
href={links.telegram}
9191
target="_blank"
9292
rel="noopener noreferrer"
93-
className="rounded-md p-2 text-muted-foreground transition-colors hover:bg-transparent hover:text-[var(--accent)] active:text-white"
93+
className="p-4 text-muted-foreground transition-colors hover:bg-transparent hover:text-[var(--accent)] active:text-white"
9494
>
9595
<Send className="h-4 w-4" />
9696
</a>
@@ -100,14 +100,14 @@ export function FloatingNotification({
100100
href={links.github}
101101
target="_blank"
102102
rel="noopener noreferrer"
103-
className="rounded-md p-2 text-muted-foreground transition-colors hover:bg-transparent hover:text-[var(--accent)] active:text-white"
103+
className="p-4 text-muted-foreground transition-colors hover:bg-transparent hover:text-[var(--accent)] active:text-white"
104104
>
105105
<Github className="h-4 w-4" />
106106
</a>
107107
)}
108108
<button
109109
onClick={() => setIsCollapsed(!isCollapsed)}
110-
className="floating-notification-button text-muted-foreground transition-colors hover:bg-[#27F795] hover:text-[#262626] active:bg-[#267A52] active:border-none active:text-[#FFFFFF]"
110+
className="floating-notification-button text-muted-foreground transition-colors hover:bg-[#27F795] hover:text-[#262626] active:bg-[#267A52] active:border-none active:text-[#FFFFFF] ml-4"
111111
>
112112
{isCollapsed ? '+' : <X className="h-4 w-4" />}
113113
</button>

0 commit comments

Comments
 (0)