Skip to content

Commit 78685ae

Browse files
authored
fix(ui): center terminal new-session button (#100256)
1 parent e6ec74c commit 78685ae

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Docs: https://docs.openclaw.ai
3232

3333
### Fixes
3434

35+
- **Control UI terminal tabs:** vertically center the new-session button in the terminal tab strip.
3536
- **Control UI composer scrollbar:** show the message-field scrollbar only when the draft actually overflows its autosized height.
3637
- **Control UI terminal cursor:** hide the browser-native contenteditable caret so the integrated terminal shows only its canvas-rendered cursor.
3738
- **macOS SSH tunnels:** resolve user-installed SSH `ProxyCommand` helpers through the app's managed PATH while preserving inherited connection environment, so remote aliases work after Finder and sanitized-script launches.

ui/src/components/terminal/terminal-panel.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ describe("OpenClawTerminalPanel", () => {
7171
});
7272
expect(createOptions?.terminalOptions?.fontFamily).toContain("MesloLGLDZ Nerd Font Mono");
7373
expect(getComputedStyle(createOptions!.parent).caretColor).toBe("rgba(0, 0, 0, 0)");
74+
const styles = (OpenClawTerminalPanel.styles as { cssText: string }).cssText;
75+
expect(styles).toMatch(/\.tp-new\s*\{[^}]*align-self:\s*center/u);
7476
await vi.waitFor(() => {
7577
expect(requests).toContainEqual({
7678
method: "terminal.resize",

ui/src/components/terminal/terminal-panel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,9 @@ export class OpenClawTerminalPanel extends LitElement {
930930
border-radius: 6px;
931931
padding: 0;
932932
}
933+
.tp-new {
934+
align-self: center;
935+
}
933936
.tp-tab__close:hover,
934937
.tp-new:hover,
935938
.tp-icon:hover {

0 commit comments

Comments
 (0)