mirror of
https://github.com/simstudioai/sim.git
synced 2026-11-05 00:02:28 +08:00
fix(icons): align table block icon and 12-unit icon stroke with the emcn family (#6708)
The table/table_v2 blocks and the table trigger used a local lucide-shaped TableIcon (stroke 2.0, full-bleed 24 viewBox, 3x3 grid) while every other table surface used emcn's Table. Consolidate onto the emcn icon and drop the local copy. Nested tool-call rows in Chat applied no color class, so a non-brand block icon inherited body text instead of --text-icon. redo/undo/zoom-in/zoom-out draw 0.85 stroke on a 12-unit viewBox, rendering 0.992px at a 14px box against the family's 0.904px. 0.775 restores parity.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// Maps block types to their icon component references
|
||||
|
||||
import type { ComponentType, SVGProps } from 'react'
|
||||
import { Library, Rocket } from '@sim/emcn/icons'
|
||||
import { Library, Rocket, Table } from '@sim/emcn/icons'
|
||||
import {
|
||||
A2AIcon,
|
||||
AgentMailIcon,
|
||||
@@ -225,7 +225,6 @@ import {
|
||||
StagehandIcon,
|
||||
StripeIcon,
|
||||
SupabaseIcon,
|
||||
TableIcon,
|
||||
TailscaleIcon,
|
||||
TavilyIcon,
|
||||
TelegramIcon,
|
||||
@@ -518,7 +517,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
|
||||
stt: STTIcon,
|
||||
stt_v2: STTIcon,
|
||||
supabase: SupabaseIcon,
|
||||
table: TableIcon,
|
||||
table: Table,
|
||||
tailscale: TailscaleIcon,
|
||||
tavily: TavilyIcon,
|
||||
telegram: TelegramIcon,
|
||||
|
||||
Reference in New Issue
Block a user