Skip to content

Commit 3346234

Browse files
committed
fix chat messages styling in light mode
1 parent ebe4a1d commit 3346234

File tree

3 files changed

+6
-20
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components

3 files changed

+6
-20
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function ChatMessage({ message }: ChatMessageProps) {
157157

158158
{formattedContent && !formattedContent.startsWith('Uploaded') && (
159159
<div className='rounded-[4px] border border-[var(--border-1)] bg-[var(--surface-5)] px-[8px] py-[6px] transition-all duration-200'>
160-
<div className='whitespace-pre-wrap break-words font-medium font-sans text-gray-100 text-sm leading-[1.25rem]'>
160+
<div className='whitespace-pre-wrap break-words font-medium font-sans text-[var(--text-primary)] text-sm leading-[1.25rem]'>
161161
<WordWrap text={formattedContent} />
162162
</div>
163163
</div>
@@ -168,7 +168,7 @@ export function ChatMessage({ message }: ChatMessageProps) {
168168

169169
return (
170170
<div className='w-full max-w-full overflow-hidden pl-[2px] opacity-100 transition-opacity duration-200'>
171-
<div className='whitespace-pre-wrap break-words font-[470] font-season text-[#E8E8E8] text-sm leading-[1.25rem]'>
171+
<div className='whitespace-pre-wrap break-words font-[470] font-season text-[var(--text-primary)] text-sm leading-[1.25rem]'>
172172
<WordWrap text={formattedContent} />
173173
{message.isStreaming && <StreamingIndicator />}
174174
</div>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,8 @@ export function ComboBox({
271271
) {
272272
fetchOptionsIfNeeded()
273273
}
274-
}, [
275-
fetchOptions,
276-
isPreview,
277-
disabled,
278-
fetchedOptions.length,
279-
isLoadingOptions,
280-
fetchOptionsIfNeeded,
281-
dependencyValues, // Refetch when dependencies change
282-
])
274+
// eslint-disable-next-line react-hooks/exhaustive-deps -- fetchOptionsIfNeeded deps already covered above
275+
}, [fetchOptions, isPreview, disabled, fetchedOptions.length, isLoadingOptions, dependencyValues])
283276

284277
// Hydrate the stored value's label by fetching it individually
285278
useEffect(() => {

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/dropdown/dropdown.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -363,15 +363,8 @@ export function Dropdown({
363363
) {
364364
fetchOptionsIfNeeded()
365365
}
366-
}, [
367-
fetchOptions,
368-
isPreview,
369-
disabled,
370-
fetchedOptions.length,
371-
isLoadingOptions,
372-
fetchOptionsIfNeeded,
373-
dependencyValues, // Refetch when dependencies change
374-
])
366+
// eslint-disable-next-line react-hooks/exhaustive-deps -- fetchOptionsIfNeeded deps already covered above
367+
}, [fetchOptions, isPreview, disabled, fetchedOptions.length, isLoadingOptions, dependencyValues])
375368

376369
/**
377370
* Effect to hydrate the stored value's label by fetching it individually

0 commit comments

Comments
 (0)