fix(ui): center terminal new-session button (#100256)

This commit is contained in:
Peter Steinberger
2026-07-05 02:36:12 -07:00
committed by GitHub
parent e6ec74c254
commit 78685aec46
3 changed files with 6 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- **Control UI terminal tabs:** vertically center the new-session button in the terminal tab strip.
- **Control UI composer scrollbar:** show the message-field scrollbar only when the draft actually overflows its autosized height.
- **Control UI terminal cursor:** hide the browser-native contenteditable caret so the integrated terminal shows only its canvas-rendered cursor.
- **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.

View File

@@ -71,6 +71,8 @@ describe("OpenClawTerminalPanel", () => {
});
expect(createOptions?.terminalOptions?.fontFamily).toContain("MesloLGLDZ Nerd Font Mono");
expect(getComputedStyle(createOptions!.parent).caretColor).toBe("rgba(0, 0, 0, 0)");
const styles = (OpenClawTerminalPanel.styles as { cssText: string }).cssText;
expect(styles).toMatch(/\.tp-new\s*\{[^}]*align-self:\s*center/u);
await vi.waitFor(() => {
expect(requests).toContainEqual({
method: "terminal.resize",

View File

@@ -930,6 +930,9 @@ export class OpenClawTerminalPanel extends LitElement {
border-radius: 6px;
padding: 0;
}
.tp-new {
align-self: center;
}
.tp-tab__close:hover,
.tp-new:hover,
.tp-icon:hover {