Leave other lanes' files as main formats them

This commit is contained in:
2026-11-10 13:38:10 +00:00
parent 5be19909a4
commit 0d0810b87a
3 changed files with 4 additions and 8 deletions
@@ -202,7 +202,7 @@ class _ChatBackgroundTasksState extends State<ChatBackgroundTasks> {
// Level with the field's single line, beside Send.
padding: const EdgeInsetsDirectional.only(end: 4, bottom: 4),
child: Semantics(
identifier: 'chat-background-tasks-button',
identifier: 'chat-background-tasks-button',
button: true,
excludeSemantics: true,
onTap: _open,
@@ -142,10 +142,8 @@ class ChatWorkspaceGeometry {
};
if (gap < -slack || gap > chatPaneDividerExtent + slack) continue;
final overlap = horizontal
? math.min(origin.bottom, rect.bottom) -
math.max(origin.top, rect.top)
: math.min(origin.right, rect.right) -
math.max(origin.left, rect.left);
? math.min(origin.bottom, rect.bottom) - math.max(origin.top, rect.top)
: math.min(origin.right, rect.right) - math.max(origin.left, rect.left);
if (overlap <= slack) continue;
final centred = horizontal
? rect.top <= centre && centre < rect.bottom
@@ -125,9 +125,7 @@ void main() {
addTearDown(controller.dispose);
final outer = controller.root as ChatWorkspaceSplit;
controller.resize(outer.id, .3);
final ids = {
for (final s in ['a', 'b', 'c', 'd']) s: _id(controller, s),
};
final ids = {for (final s in ['a', 'b', 'c', 'd']) s: _id(controller, s)};
final serial = controller.moveSerial;
controller.swap(ids['a']!, ids['c']!);
expect(controller.panes.map((p) => p.sessionId), ['c', 'b', 'a', 'd']);