Skip to content

Commit 476b99e

Browse files
committed
improvement(copilot): ui/ux
1 parent 4fc55a0 commit 476b99e

33 files changed

+206
-140
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/command-list/command-list.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import { useCallback } from 'react'
44
import { createLogger } from '@sim/logger'
5-
import { Layout, LibraryBig, Search } from 'lucide-react'
5+
import { Layout, Search } from 'lucide-react'
66
import Image from 'next/image'
77
import { useParams, useRouter } from 'next/navigation'
8-
import { Button } from '@/components/emcn'
8+
import { Button, Library } from '@/components/emcn'
99
import { AgentIcon } from '@/components/icons'
1010
import { cn } from '@/lib/core/utils/cn'
1111
import { usePreventZoom } from '@/app/workspace/[workspaceId]/w/[workflowId]/hooks'
@@ -41,7 +41,7 @@ const commands: CommandItem[] = [
4141
},
4242
{
4343
label: 'Logs',
44-
icon: LibraryBig,
44+
icon: Library,
4545
shortcut: 'L',
4646
},
4747
{

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/thinking-block.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function ThinkingBlock({
184184
// During streaming: show header with shimmer effect + expanded content
185185
if (!isThinkingDone) {
186186
return (
187-
<div className='mt-1 mb-0'>
187+
<div>
188188
{/* Define shimmer keyframes */}
189189
<style>{`
190190
@keyframes thinking-shimmer {
@@ -201,7 +201,7 @@ export function ThinkingBlock({
201201
return next
202202
})
203203
}}
204-
className='group mb-1 inline-flex items-center gap-1 text-left font-[470] font-season text-[var(--text-secondary)] text-sm transition-colors hover:text-[var(--text-primary)]'
204+
className='group inline-flex items-center gap-1 text-left font-[470] font-season text-[var(--text-secondary)] text-sm transition-colors hover:text-[var(--text-primary)]'
205205
type='button'
206206
>
207207
<span className='relative inline-block'>
@@ -242,7 +242,7 @@ export function ThinkingBlock({
242242
ref={scrollContainerRef}
243243
className={clsx(
244244
'overflow-y-auto transition-all duration-300 ease-in-out',
245-
isExpanded ? 'mt-1 max-h-[200px] opacity-100' : 'max-h-0 opacity-0'
245+
isExpanded ? 'mt-1.5 max-h-[200px] opacity-100' : 'max-h-0 opacity-0'
246246
)}
247247
>
248248
{/* Render markdown during streaming with thinking text styling */}
@@ -257,12 +257,12 @@ export function ThinkingBlock({
257257

258258
// After done: show collapsible header with duration
259259
return (
260-
<div className='mt-1 mb-0'>
260+
<div>
261261
<button
262262
onClick={() => {
263263
setIsExpanded((v) => !v)
264264
}}
265-
className='group mb-1 inline-flex items-center gap-1 text-left font-[470] font-season text-[var(--text-secondary)] text-sm transition-colors hover:text-[var(--text-primary)]'
265+
className='group inline-flex items-center gap-1 text-left font-[470] font-season text-[var(--text-secondary)] text-sm transition-colors hover:text-[var(--text-primary)]'
266266
type='button'
267267
disabled={!hasContent}
268268
>
@@ -282,7 +282,7 @@ export function ThinkingBlock({
282282
ref={scrollContainerRef}
283283
className={clsx(
284284
'overflow-y-auto transition-all duration-300 ease-in-out',
285-
isExpanded ? 'mt-1 max-h-[200px] opacity-100' : 'max-h-0 opacity-0'
285+
isExpanded ? 'mt-1.5 max-h-[200px] opacity-100' : 'max-h-0 opacity-0'
286286
)}
287287
>
288288
{/* Use markdown renderer for completed content */}

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ const CopilotMessage: FC<CopilotMessageProps> = memo(
483483
)}
484484

485485
{message.errorType === 'usage_limit' && (
486-
<div className='mt-3 flex gap-1.5'>
486+
<div className='flex gap-1.5'>
487487
<UsageLimitActions />
488488
</div>
489489
)}

0 commit comments

Comments
 (0)