fix(ui): no space inside the wordmark — adjacent Runs again

The comment I added between the two <Run> 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.
This commit is contained in:
2026-10-30 11:09:16 -07:00
parent 318871033f
commit 9b08c3af4f
2 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -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("<Run Text=\"ty\" Foreground=\"{StaticResource Brush.Youtube}\"/>", 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("<Run Text=\"LlamaCas\" Foreground=\"{StaticResource Brush.OnSurface}\"/><Run Text=\"ty\" Foreground=\"{StaticResource Brush.Youtube}\"/>", 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.