Skip to content

Commit 684261b

Browse files
committed
style(desktop): color the background activity dot with Tailwind classes
1 parent 9518d43 commit 684261b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar

‎apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ const SEARCH_MODAL_DATE_FORMAT = new Intl.DateTimeFormat(undefined, {
185185
minute: '2-digit',
186186
})
187187

188-
const DESKTOP_ACTIVITY_COLOR: Record<DesktopChatActivity['state'], string> = {
189-
running: '#EAB308',
190-
needs_input: 'var(--warning)',
191-
blocked: 'var(--text-error)',
188+
const DESKTOP_ACTIVITY_COLOR_CLASS: Record<DesktopChatActivity['state'], string> = {
189+
running: 'bg-[#EAB308]',
190+
needs_input: 'bg-[var(--warning)]',
191+
blocked: 'bg-[var(--text-error)]',
192192
}
193193

194194
function desktopActivityLabel({ state, deviceName }: DesktopChatActivity): string {
@@ -211,8 +211,7 @@ function DesktopActivityDot({ activity }: DesktopActivityDotProps) {
211211
<span
212212
role='img'
213213
aria-label={desktopActivityLabel(activity)}
214-
className='size-[6px] rounded-full'
215-
style={{ backgroundColor: DESKTOP_ACTIVITY_COLOR[activity.state] }}
214+
className={cn('size-[6px] rounded-full', DESKTOP_ACTIVITY_COLOR_CLASS[activity.state])}
216215
/>
217216
)
218217
}

0 commit comments

Comments
 (0)