File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/notifications Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -138,18 +138,24 @@ export const Notifications = memo(function Notifications() {
138138 } `}
139139 >
140140 < div className = 'flex h-full flex-col justify-between px-[8px] pt-[6px] pb-[8px]' >
141- < div
142- className = { `font-medium text-[12px] leading-[16px] ${
143- hasAction ? 'line-clamp-2' : 'line-clamp-4'
144- } `}
145- >
141+ < div className = 'flex items-start gap-[8px]' >
142+ < div
143+ className = { `min-w-0 flex-1 font-medium text-[12px] leading-[16px] ${
144+ hasAction ? 'line-clamp-2' : 'line-clamp-4'
145+ } `}
146+ >
147+ { notification . level === 'error' && (
148+ < span className = 'mr-[6px] mb-[2.75px] inline-block h-[6px] w-[6px] rounded-[2px] bg-[var(--text-error)] align-middle' />
149+ ) }
150+ { notification . message }
151+ </ div >
146152 < Tooltip . Root >
147153 < Tooltip . Trigger asChild >
148154 < Button
149155 variant = 'ghost'
150156 onClick = { ( ) => removeNotification ( notification . id ) }
151157 aria-label = 'Dismiss notification'
152- className = '!p-1.5 -m-1.5 float-right ml-[16px] '
158+ className = '!p-1.5 -m-1.5 shrink-0 '
153159 >
154160 < X className = 'h-3 w-3' />
155161 </ Button >
@@ -158,10 +164,6 @@ export const Notifications = memo(function Notifications() {
158164 < Tooltip . Shortcut keys = '⌘E' > Clear all</ Tooltip . Shortcut >
159165 </ Tooltip . Content >
160166 </ Tooltip . Root >
161- { notification . level === 'error' && (
162- < span className = 'mr-[6px] mb-[2.75px] inline-block h-[6px] w-[6px] rounded-[2px] bg-[var(--text-error)] align-middle' />
163- ) }
164- { notification . message }
165167 </ div >
166168 { hasAction && (
167169 < Button
You can’t perform that action at this time.
0 commit comments