Skip to content

Commit e9ad22b

Browse files
committed
ui
1 parent 40f1180 commit e9ad22b

File tree

1 file changed

+11
-40
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/wand-prompt-bar

1 file changed

+11
-40
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/wand-prompt-bar/wand-prompt-bar.tsx

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function WandPromptBar({
8989
)}
9090
>
9191
<div className='flex items-center gap-2 p-2'>
92-
<div className={cn('status-indicator ml-1', isStreaming && 'streaming')} />
92+
<div className={cn('status-indicator ml-2 self-center', isStreaming && 'streaming')} />
9393

9494
<div className='relative flex-1'>
9595
<Input
@@ -98,7 +98,7 @@ export function WandPromptBar({
9898
placeholder={placeholder}
9999
className={cn(
100100
'rounded-xl border-0 text-foreground text-sm placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0',
101-
isStreaming && 'text-primary',
101+
isStreaming && 'text-foreground/70',
102102
(isLoading || isStreaming) && 'loading-placeholder'
103103
)}
104104
onKeyDown={(e) => {
@@ -111,11 +111,6 @@ export function WandPromptBar({
111111
disabled={isLoading || isStreaming}
112112
autoFocus={!isStreaming}
113113
/>
114-
{isStreaming && (
115-
<div className='pointer-events-none absolute inset-0 h-full w-full overflow-hidden'>
116-
<div className='shimmer-effect' />
117-
</div>
118-
)}
119114
</div>
120115

121116
<Button
@@ -141,14 +136,6 @@ export function WandPromptBar({
141136
</div>
142137

143138
<style jsx global>{`
144-
@keyframes shimmer {
145-
0% {
146-
transform: translateX(-100%);
147-
}
148-
100% {
149-
transform: translateX(100%);
150-
}
151-
}
152139
153140
@keyframes smoke-pulse {
154141
0%,
@@ -164,8 +151,8 @@ export function WandPromptBar({
164151
165152
.status-indicator {
166153
position: relative;
167-
width: 16px;
168-
height: 16px;
154+
width: 12px;
155+
height: 12px;
169156
border-radius: 50%;
170157
overflow: hidden;
171158
background-color: hsl(var(--muted-foreground) / 0.5);
@@ -183,36 +170,20 @@ export function WandPromptBar({
183170
border-radius: 50%;
184171
background: radial-gradient(
185172
circle,
186-
hsl(var(--primary) / 0.7) 0%,
187-
hsl(var(--primary) / 0.2) 60%,
173+
hsl(var(--primary) / 0.9) 0%,
174+
hsl(var(--primary) / 0.4) 60%,
188175
transparent 80%
189176
);
190177
animation: smoke-pulse 1.8s ease-in-out infinite;
178+
opacity: 0.9;
191179
}
192180
193-
.shimmer-effect {
194-
position: absolute;
195-
top: 0;
196-
left: 0;
197-
width: 100%;
198-
height: 100%;
199-
background: linear-gradient(
200-
90deg,
201-
rgba(255, 255, 255, 0) 0%,
202-
rgba(255, 255, 255, 0.4) 50%,
203-
rgba(255, 255, 255, 0) 100%
204-
);
205-
animation: shimmer 2s infinite;
181+
.dark .status-indicator.streaming::before {
182+
background: #6b7280;
183+
opacity: 0.9;
184+
animation: smoke-pulse 1.8s ease-in-out infinite;
206185
}
207186
208-
.dark .shimmer-effect {
209-
background: linear-gradient(
210-
90deg,
211-
rgba(50, 50, 50, 0) 0%,
212-
rgba(80, 80, 80, 0.4) 50%,
213-
rgba(50, 50, 50, 0) 100%
214-
);
215-
}
216187
`}</style>
217188
</div>
218189
)

0 commit comments

Comments
 (0)