Skip to content

Commit 56cce45

Browse files
ci-botAniket-Engg
authored andcommitted
update
1 parent a2ae81b commit 56cce45

File tree

5 files changed

+10
-369
lines changed

5 files changed

+10
-369
lines changed

libs/remix-ui/remix-ai-assistant/src/components/chat.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface ChatHistoryComponentProps {
1818
sendPrompt: (prompt: string) => void
1919
recordFeedback: (msgId: string, next: 'like' | 'dislike' | 'none') => void
2020
historyRef: React.RefObject<HTMLDivElement>
21+
theme: string
2122
}
2223

2324
interface AiChatIntroProps {
@@ -77,7 +78,8 @@ export const ChatHistoryComponent: React.FC<ChatHistoryComponentProps> = ({
7778
isStreaming,
7879
sendPrompt,
7980
recordFeedback,
80-
historyRef
81+
historyRef,
82+
theme
8183
}) => {
8284
return (
8385
<div
@@ -135,7 +137,7 @@ export const ChatHistoryComponent: React.FC<ChatHistoryComponentProps> = ({
135137
return (
136138
<div className="ai-code-block-wrapper">
137139
{language && (
138-
<div className="ai-code-header">
140+
<div className={`ai-code-header ${theme === 'Dark' ? 'text-white' : 'text-dark'}`}>
139141
<span className="ai-code-language">{language}</span>
140142
<button
141143
type="button"

libs/remix-ui/remix-ai-assistant/src/components/remix-ui-remix-ai-assistant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
5858
const [aiMode, setAiMode] = useState<'ask' | 'edit'>('ask')
5959
const [themeTracker, setThemeTracker] = useState(null)
6060
const [isMaximized, setIsMaximized] = useState(false)
61-
6261
const historyRef = useRef<HTMLDivElement | null>(null)
6362
const modelBtnRef = useRef(null)
6463
const modelSelectorBtnRef = useRef(null)
@@ -693,6 +692,7 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
693692
sendPrompt={sendPrompt}
694693
recordFeedback={recordFeedback}
695694
historyRef={historyRef}
695+
theme={themeTracker?.name}
696696
/>
697697
</section>
698698
<section id="remix-ai-prompt-area" className="mt-1" style={{ flex: 1 }}

libs/remix-ui/remix-ai-assistant/src/css/remix-ai-assistant.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
color: var(--bs-body-color);
377377
padding: 0.2em 0.4em;
378378
border-radius: 3px;
379-
font-size: 0.5em;
379+
font-size: 0.75em;
380380
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
381381
white-space: pre-wrap;
382382
word-break: break-word;
@@ -390,6 +390,7 @@
390390
border: 1px solid var(--bs-border-color);
391391
border-radius: 6px;
392392
overflow: hidden;
393+
font-size: 0.75em;
393394
}
394395

395396
/* Code Header with Language Tag */
@@ -398,15 +399,14 @@
398399
justify-content: space-between;
399400
align-items: center;
400401
padding: 0.5rem 0.75rem;
401-
background: rgba(110, 118, 129, 0.2);
402+
background: rgba(112, 149, 200, 0.2);
402403
border-bottom: 1px solid var(--bs-border-color);
403404
}
404405

405406
.ai-code-language {
406407
font-size: 0.75rem;
407408
font-weight: 600;
408409
text-transform: uppercase;
409-
color: var(--bs-secondary);
410410
letter-spacing: 0.5px;
411411
}
412412

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,9 @@
195195
"react-intl": "^6.0.4",
196196
"react-markdown": "^8.0.5",
197197
"react-multi-carousel": "^2.8.2",
198-
"react-remark": "^2.1.0",
199198
"react-router-dom": "^6.16.0",
200199
"react-select": "^5.8.0",
201200
"react-spinners": "^0.13.8",
202-
"react-syntax-highlighter": "^15.6.1",
203201
"react-tabs": "^6.0.2",
204202
"react-toastify": "^10.0.3",
205203
"react-virtualized": "^9.22.5",

0 commit comments

Comments
 (0)