Repository navigation
fix(ui): hide plugin toolbar actions in the resting phone composer - #201939
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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 stylesheetdisplay: none, which an inline style outranks, so the plugin's toolbar slot stayed visible.base.cssalready givesopenclaw-plugin-contributionsdisplay: 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
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.control-ui-contributionsunit tests pass;tsgo:ui, oxlint.chat-composer-size.e2e.test.ts360/375px active-run cases fail identically on unmodified main; unrelated.