Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,8 @@ body {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 16px clamp(64px, 12vh, 104px);
gap: 32px;
padding: 0 16px clamp(96px, 18vh, 152px);
gap: 40px;
}
.welcome-title {
margin: 0;
Expand Down Expand Up @@ -1803,7 +1803,11 @@ body {
display: block;
min-height: 136px;
padding: 10px;
border-color: hsl(var(--border) / 0.55);
border-radius: 16px;
box-shadow:
0 8px 32px rgb(0 0 0 / 0.028),
0 24px 72px 8px rgb(0 0 0 / 0.02);
}
.composer-input-stack {
display: flex;
Expand Down Expand Up @@ -1843,7 +1847,7 @@ body {
}
.prompt-suggestions {
position: absolute;
top: calc(100% + 12px);
top: calc(100% + 18px);
left: 0;
z-index: 1;
display: grid;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ui/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export function Composer({
disabled={disabled}
placeholder={skillMode
? `描述你想创建的 Skill,将使用 ${SKILL_MODELS.join(" 和 ")} 并行创建…`
: disabled ? "请选择 Agent" : `向 ${agentName} 发消息…`}
: disabled ? "请在页面左上角选择智能体" : `向 ${agentName} 发消息…`}
aria-expanded={Boolean(trigger)}
onChange={(e) => {
onChange(e.target.value);
Expand Down
1 change: 1 addition & 0 deletions frontend/tests/composerPresentation.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ test("addresses the selected Agent by its display name in the composer", () => {
/agentName=\{[\s\S]*?sandboxSession[\s\S]*?"AgentKit 沙箱"[\s\S]*?labelOf\(appName\)/,
);
assert.match(composerSource, /`向 \$\{agentName\} 发消息…`/);
assert.match(composerSource, /请在页面左上角选择智能体/);
assert.doesNotMatch(composerSource, /给智能体发消息/);
});

Expand Down
8 changes: 5 additions & 3 deletions frontend/tests/newChatComposerLayout.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ test("expands only the new-chat composer into a multiline input", () => {
/newChatLayout=\{!sandboxSession && turns\.length === 0 && skillJob === null\}/,
);
assert.match(stylesSource, /\.composer--new-chat \.composer-box[\s\S]*?min-height:/);
assert.match(stylesSource, /\.composer--new-chat \.composer-box[\s\S]*?border-color:/);
assert.match(stylesSource, /\.composer--new-chat \.composer-box[\s\S]*?box-shadow:/);
assert.match(stylesSource, /\.composer--new-chat \.comp-input[\s\S]*?min-height:/);
assert.match(stylesSource, /\.composer--new-chat \.composer-menu-wrap[\s\S]*?bottom: 10px/);
assert.match(stylesSource, /\.composer--new-chat \.comp-send[\s\S]*?bottom: 10px/);
Expand Down Expand Up @@ -83,10 +85,10 @@ test("places the mode selector beside add and moves Agent selection to the navba
);
assert.match(agentSelectorSource, /variant\?: "drawer" \| "navbar"/);
assert.doesNotMatch(sidebarSource, /<AgentSelector|className=\{`agent-row/);
assert.match(stylesSource, /\.welcome\s*\{[\s\S]*?gap:\s*32px;/);
assert.match(stylesSource, /\.welcome\s*\{[\s\S]*?gap:\s*40px;/);
assert.match(
stylesSource,
/\.welcome\s*\{[\s\S]*?padding:\s*0 16px clamp\(64px, 12vh, 104px\);/,
/\.welcome\s*\{[\s\S]*?padding:\s*0 16px clamp\(96px, 18vh, 152px\);/,
);
});

Expand All @@ -111,7 +113,7 @@ test("shows animated starter prompts below the empty new-chat composer", () => {
);
assert.match(
stylesSource,
/\.prompt-suggestions\s*\{[\s\S]*?position:\s*absolute;[\s\S]*?top:\s*calc\(100% \+ 12px\);/,
/\.prompt-suggestions\s*\{[\s\S]*?position:\s*absolute;[\s\S]*?top:\s*calc\(100% \+ 18px\);/,
);
assert.match(stylesSource, /@keyframes prompt-suggestion-enter/);
assert.match(
Expand Down
Loading