Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

feat(mobile): raise the floating mic, Search and + and space them evenly

bubu-dudu1f27286d792a
diff --git a/mobile/lib/phone/terminal_action_column.dart b/mobile/lib/phone/terminal_action_column.dart
index 80e13a22f..a155b00be 100644
--- a/mobile/lib/phone/terminal_action_column.dart
+++ b/mobile/lib/phone/terminal_action_column.dart
@@ -6,6 +6,7 @@ import 'package:harness_mobile/terminal/terminal_session.dart';
import 'voice_input_controller.dart';
import 'voice_mic_button.dart';
+import 'voice_mic_face.dart';
import 'voice_mic_fab.dart';
import 'voice_status_pill.dart';
@@ -56,13 +57,24 @@ class TerminalActionColumn extends StatelessWidget {
/// How far the column sits from the terminal's right and bottom edges.
static const double inset = VoiceMicFab.inset;
- /// The gap from the mic's slot to the first button under it — the mic's
- /// overhang plus the button's own, so the two targets meet and do not overlap.
+ /// How far the column sits above the terminal's bottom edge — higher than
+ /// [inset], so the `+` clears the agent's own status line under it.
+ static const double bottomInset = 172;
+
+ /// The DRAWN gap between one circle and the next, the same all the way down.
+ ///
+ /// ⚠️ No smaller than the mic's overhang plus a button's, less the slack
+ /// between the mic's slot and its drawn face — any closer and the mic's
+ /// target would swallow the top of Search's.
+ static const double _gap = 22;
+
+ /// The mic's slot is larger than its drawn circle, so the gap under the slot
+ /// is [_gap] less that slack.
static const double _underMic =
- VoiceMicButton.touchOverhang + TerminalRoundAction.touchOverhang;
+ _gap - (VoiceMicButton.extent - VoiceMicCore.diameter) / 2;
- /// Between Search and New agent.
- static const double _between = 10;
+ /// Between Search and New agent: circles in slots of their own size.
+ static const double _between = _gap;
@override
Widget build(BuildContext context) {
diff --git a/mobile/lib/phone/terminal_page.dart b/mobile/lib/phone/terminal_page.dart
index 1fd8aa639..887a0fb66 100644
--- a/mobile/lib/phone/terminal_page.dart
+++ b/mobile/lib/phone/terminal_page.dart
@@ -715,7 +715,7 @@ class _TerminalPageState extends State<TerminalPage>
if (!_ownsInput)
Positioned(
right: TerminalActionColumn.inset,
- bottom: TerminalActionColumn.inset,
+ bottom: TerminalActionColumn.bottomInset,
child: TerminalActionColumn(
voice: widget.voice,
session: session,