Skip to content

Commit 68db76b

Browse files
authored
Merge pull request #479 from easyops-cn/steve/chat-panel
fix(): refine page container style
2 parents 0f75ca9 + 85b9b57 commit 68db76b

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

bricks/ai-portal/src/chat-panel/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,12 @@ function LegacyChatPanelComponent(
269269
const taskContextValue = useMemo(
270270
() =>
271271
({
272+
conversationState,
272273
setActiveFile,
273274
setActiveImages,
274275
humanInput,
275276
}) as TaskContextValue,
276-
[humanInput]
277+
[conversationState, humanInput]
277278
);
278279

279280
useImperativeHandle(

bricks/ai-portal/src/chat-stream/NodeChunk/NodeChunk.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
align-items: center;
44
padding: 5px 8px;
5-
margin: 0 -8px 12px;
5+
margin: 0 0 12px;
66
cursor: pointer;
77
}
88

bricks/ai-portal/src/page-container/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function PageContainerComponent({
8181
const header =
8282
pageTitle || breadcrumbs?.length ? (
8383
<div className="header">
84-
<nav>
84+
<nav className={breadcrumbs?.length ? "with-breadcrumbs" : ""}>
8585
{breadcrumbs?.length ? (
8686
<ul className="breadcrumbs">
8787
{breadcrumbs.map((item, index) => (

bricks/ai-portal/src/page-container/styles.shadow.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,26 @@
6767
}
6868

6969
nav {
70-
font-weight: 500;
71-
font-size: 20px;
72-
line-height: 28px;
70+
font-size: 28px;
71+
line-height: 40px;
72+
font-weight: 600;
7373
display: flex;
7474
min-width: 0;
7575
white-space: nowrap;
7676
flex-wrap: wrap;
7777
}
7878

79+
nav.with-breadcrumbs {
80+
font-weight: 500;
81+
font-size: 20px;
82+
line-height: 28px;
83+
}
84+
7985
h1 {
8086
margin: 0;
8187
font-size: inherit;
8288
line-height: inherit;
89+
font-weight: inherit;
8390
}
8491

8592
.breadcrumbs {

0 commit comments

Comments
 (0)