From 9b08c3af4fd477813bcf07567366c4617786d9e7 Mon Sep 17 00:00:00 2001 From: gramps Date: Fri, 30 Oct 2026 11:09:16 -0700 Subject: [PATCH] =?UTF-8?q?fix(ui):=20no=20space=20inside=20the=20wordmark?= =?UTF-8?q?=20=E2=80=94=20adjacent=20Runs=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment I added between the two elements introduced whitespace, and whitespace between inline Runs collapses to a rendered space: the wordmark read "LlamaCas ty". The comment moved above the TextBlock, the Runs are contiguous, and UiShellTests asserts them adjacent so a future edit cannot re-introduce the gap. --- Controls/TopBar.xaml | 7 ++++--- ytLive.Tests/UiShellTests.cs | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Controls/TopBar.xaml b/Controls/TopBar.xaml index 4159e5b..3699f6f 100644 --- a/Controls/TopBar.xaml +++ b/Controls/TopBar.xaml @@ -22,10 +22,11 @@ + - - diff --git a/ytLive.Tests/UiShellTests.cs b/ytLive.Tests/UiShellTests.cs index 3d0a25e..15c7681 100644 --- a/ytLive.Tests/UiShellTests.cs +++ b/ytLive.Tests/UiShellTests.cs @@ -63,7 +63,9 @@ public class UiShellTests public void The_wordmark_ty_stays_youtube_red_and_ctrl_opens_the_context_menu() { var topBar = SourceAssert.Text("Controls", "TopBar.xaml"); - Assert.Contains("", topBar); + // Adjacent, with nothing between: whitespace inside a TextBlock between inline Runs + // collapses to a space and prints "LlamaCas ty" (this exact bug shipped once). + Assert.Contains("", topBar); // Plain right-click is the zoom box; the context menu moved to Ctrl+right-click so a // creator can change capture sources mid-stream.