mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 11:03:58 +00:00
fix(ui): center terminal new-session button (#100256)
This commit is contained in:
committed by
GitHub
parent
e6ec74c254
commit
78685aec46
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user