Skip to content

fix(ui): hide plugin toolbar actions in the resting phone composer - #201939

Merged
obviyus merged 1 commit into
mainfrom
better-mobile-row
Nov 19, 2026
Merged

obviyus merged 1 commit into
mainfrom
better-mobile-row

Conversation

@obviyus

@obviyus obviyus commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

On a phone, an empty composer the user is not typing in rests as one line: +, the placeholder, microphone and send. Its stylesheet hides every other control. A plugin composer action with an icon (#201695), such as Better, still showed: it dropped to its own row under the one-line composer and made it taller.

Cause

The contributions element set host.style.display = "contents" inline. The resting layout hides the lead's other controls with a stylesheet display: none, which an inline style outranks, so the plugin's toolbar slot stayed visible. base.css already gives openclaw-plugin-contributions display: contents, so the inline style was redundant.

Fix

Remove the inline style. The resting phone composer hides toolbar actions like its other controls; typing or focusing the composer shows the full toolbar again, including the action. An action like Better is disabled on an empty draft anyway.

Evidence

  • New e2e (native-plugin-composer.e2e.test.ts, 390px phone): the resting composer hides the icon action, and typing shows it. Red on main (expected true to be false), green with the fix.
  • All composer-task and native plugin UI e2e (17) and control-ui-contributions unit tests pass; tsgo:ui, oxlint.
  • chat-composer-size.e2e.test.ts 360/375px active-run cases fail identically on unmodified main; unrelated.
  • Before/after phone screenshots in the comments.

@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@obviyus

obviyus commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Phone (390px) resting composer, fixture plugin with icon actions.

Before: icon actions stack in rows under the resting composer

After: one line

Typing shows the full toolbar again

@obviyus
obviyus merged commit d89d554 into main Nov 19, 2026
88 checks passed
@obviyus
obviyus deleted the better-mobile-row branch November 19, 2026 16:46
@obviyus

obviyus commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in d89d554. The resting phone composer now hides plugin toolbar actions like its other controls, so it stays one line; typing shows them again. Proof: new phone e2e red on main, green here; all composer-task and native plugin UI e2e green; clean local review and green CI on b6c5355; before/after screenshots above.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…penclaw#201939)

## What Problem This Solves

On a phone, an empty composer the user is not typing in rests as one line: **+**, the placeholder, microphone and send. Its stylesheet hides every other control. A plugin composer action with an icon (openclaw#201695), such as Better, still showed: it dropped to its own row under the one-line composer and made it taller.

## Cause

The contributions element set `host.style.display = "contents"` inline. The resting layout hides the lead's other controls with a stylesheet `display: none`, which an inline style outranks, so the plugin's toolbar slot stayed visible. `base.css` already gives `openclaw-plugin-contributions` `display: contents`, so the inline style was redundant.

## Fix

Remove the inline style. The resting phone composer hides toolbar actions like its other controls; typing or focusing the composer shows the full toolbar again, including the action. An action like Better is disabled on an empty draft anyway.

## Evidence

- New e2e (`native-plugin-composer.e2e.test.ts`, 390px phone): the resting composer hides the icon action, and typing shows it. Red on main (`expected true to be false`), green with the fix.
- All composer-task and native plugin UI e2e (17) and `control-ui-contributions` unit tests pass; `tsgo:ui`, oxlint.
- `chat-composer-size.e2e.test.ts` 360/375px active-run cases fail identically on unmodified main; unrelated.
- Before/after phone screenshots in the comments.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant