Skip to content

Commit 3d33c86

Browse files
authored
fix #171: mixed up theme in the LLMChat page (#173)
1 parent 450a7f2 commit 3d33c86

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

ui/src/Pages/LLMChat/LLMChatPage.tsx

+5-11
Original file line numberDiff line numberDiff line change
@@ -423,16 +423,7 @@ export const LLMChatPage: React.FC = () => {
423423
<Icon />
424424
{title}
425425
</div>
426-
<div
427-
style={{
428-
padding: "0.5rem",
429-
background: "#393939",
430-
borderRadius: "4px",
431-
width: "100%",
432-
wordWrap: "break-word",
433-
border: "1px solid #525252",
434-
}}
435-
>
426+
<div className="message">
436427
{(message.role === "tool-response" && (
437428
<p
438429
dangerouslySetInnerHTML={{
@@ -448,7 +439,10 @@ export const LLMChatPage: React.FC = () => {
448439
return (
449440
<div>
450441
<h1 className="title">LLM Chat for testing</h1>
451-
<Tabs selectedIndex={tabIndex} onChange={({ selectedIndex }) => setTabIndex(selectedIndex)}>
442+
<Tabs
443+
selectedIndex={tabIndex}
444+
onChange={({ selectedIndex }) => setTabIndex(selectedIndex)}
445+
>
452446
<TabList scrollDebounceWait={200} style={{ padding: "0 2rem" }}>
453447
<Tab>LLM Setup</Tab>
454448
<Tab>Tools Selection</Tab>

ui/src/index.scss

+9
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ body {
3838

3939
.tabbg {
4040
background: theme.$background;
41+
}
42+
43+
.message {
44+
padding: 0.5rem;
45+
background: theme.$layer-02;
46+
border-radius: 4px;
47+
width: 100%;
48+
word-wrap: break-word;
49+
border: 1px solid theme.$border-subtle;
4150
}

0 commit comments

Comments
 (0)