From de0b5f12ae7adab8b3b0baba81b2a7ccc4cc05da Mon Sep 17 00:00:00 2001 From: Jaap-Jan de Wit | DodoTech Date: Sat, 8 Aug 2026 22:28:26 +0200 Subject: [PATCH] Let the pane headers' paths actually trim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TextTrimming only acts when measure hands the block a finite width, and a horizontal StackPanel never does — it measures every child at infinity and an Auto grid column passes the full answer on. So both SFTP pane headers grew with their path, and a directory deep enough pushed the header's own icon buttons past the window's edge at the session shell's 472-pixel budget. The layout suite has said so on every CI run since v5b landed, and nowhere else: the runner's per-job HOME is a 46-character path, which is what the local pane opens on, and every developer machine's short profile path left the same test green. The path sits alone in the star column now — bounded width, working ellipsis — and the narrowest-budget test pins both panes to sixty-character paths so the question is asked on every machine alike; against the old markup that test fails on Windows too. --- .../Views/TransfersScreen.axaml | 46 +++++++++++++------ .../ScreenLayoutTests.cs | 12 +++++ 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/src/DodoSSH.Client.App/Views/TransfersScreen.axaml b/src/DodoSSH.Client.App/Views/TransfersScreen.axaml index 0fde69f..f1260e9 100644 --- a/src/DodoSSH.Client.App/Views/TransfersScreen.axaml +++ b/src/DodoSSH.Client.App/Views/TransfersScreen.axaml @@ -177,16 +177,27 @@ thing (go to the parent directory), and the pair reading differently is the design's own choice faithfully carried over rather than a functional difference invented to justify it. --> + - - - - - + + + + - + - - + +