Skip to content

fix(desktop): anchor send button to bottom-right of composer#3448

Merged
esengine merged 1 commit into
esengine:main-v2from
HUQIANTAO:fix/desktop-send-button-position
Jun 8, 2026
Merged

fix(desktop): anchor send button to bottom-right of composer#3448
esengine merged 1 commit into
esengine:main-v2from
HUQIANTAO:fix/desktop-send-button-position

Conversation

@HUQIANTAO

Copy link
Copy Markdown
Contributor

Problem

The send button uses the default flex alignment (center), so it floats vertically centred in the composer. As the textarea grows to 2, 3, 4+ lines, the button drifts downward with each new line — the muscle memory target keeps moving.

Fix

Add align-self: flex-end to .composer__btn:

.composer__btn {
  ...
  align-self: flex-end;
  ...
}

This pins the button to the bottom-right corner of the flex container regardless of how tall the input is. The caret () keeps the default align-items: center so it stays visually anchored to the first line of text.

Before / After

Lines Before (button position) After (button position)
1 line Centred ✓ Bottom ✓
3 lines Drifted down ✗ Bottom (same spot) ✓
5 lines Near bottom ✗ Bottom (same spot) ✓

Verification

  • pnpm typecheck ✅ clean
  • pnpm buildbuilt in 12.75s
  • No new dependencies
  • No i18n changes
  • Diff: 1 file, +1 / −0

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 7, 2026
@HUQIANTAO HUQIANTAO force-pushed the fix/desktop-send-button-position branch 2 times, most recently from 2315dc7 to 2ac56a9 Compare June 7, 2026 11:04
The send button uses the default flex alignment (center), so it floats
vertically-centred in the composer.  As the textarea grows to 2, 3, 4+
lines the button drifts downward with each new line — the muscle memory
target keeps moving.

Add align-self: flex-end to .composer__btn so the button hugs the
bottom-right corner regardless of how tall the input is.  The caret (›)
stays vertically centred (the default align-items: center) which keeps
it visually anchored to the first line of text.
@HUQIANTAO HUQIANTAO force-pushed the fix/desktop-send-button-position branch from 2ac56a9 to f229701 Compare June 7, 2026 11:18

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align-self: flex-end keeps the send button anchored to the composer's bottom as the textarea grows. Windows test flake (TestRunShell_CancelStopsCommand, unrelated timing) re-ran green.

@esengine esengine merged commit f506044 into esengine:main-v2 Jun 8, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants