Skip to content

Commit 388cc7f

Browse files
Enforce visual parity for TuiExpander in Home.razor
Co-authored-by: tedd <493224+tedd@users.noreply.github.com>
1 parent ca7524e commit 388cc7f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.jules/vanguard.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@
2828
## 2026-06-11 - TabControl Selection Synchronization Parity
2929
**Observation:** The bifurcated architecture correctly synced navigation from the TreeView to the TabControl across all paradigms. However, bidirectional synchronization—where navigating via the TabControl updates the TreeView state—was absent in the Blazor deployment targets (Home.razor and Programmatic.razor).
3030
**Strategic Action:** Implemented identical `SelectionChanged` logic within the TabControl across the Blazor deployments to map active tabs back to the TreeView context. Introduced derived `@bind-IsSelected` boolean bindings on Razor TreeViewItems, driven from `_selectedTabIndex`, to keep navigation state synchronized between the TreeView and TabControl.
31+
## 2025-02-24 - Structural Sync for TuiExpander
32+
**Observation:** In declarative configurations (like Blazor's `Home.razor`), the `TuiExpander` layout was lacking the explicit `Width="20"` attribute present in programmatic approaches, leading to rendering discrepancies in the bifurcated architecture.
33+
**Strategic Action:** Synchronized `Home.razor` to enforce strict layout parameters by applying `Width="20"` to `TuiExpander`, thereby establishing unified layout rendering consistency across all vectors.

src/Tedd.TUI.Demo.Blazor/Pages/Home.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<!-- Bifurcated Architecture -->
5353
<TuiDockPanel LastChildFill="true">
5454
<!-- Navigation Pane (Left) -->
55-
<TuiExpander Dock="Dock.Left" Header="Navigation" IsExpanded="true">
55+
<TuiExpander Dock="Dock.Left" Header="Navigation" IsExpanded="true" Width="20">
5656
<TuiTreeView SelectedItemChanged="OnNavSelected">
5757
<TuiTreeViewItem Header="Controls" IsExpanded="true">
5858
<TuiTreeViewItem Header="Form" @bind-IsSelected="isFormSelected" />

0 commit comments

Comments
 (0)