diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c1bd5f..4dee733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,11 @@ submodule. shows ⚠ so the warning never depends on color alone, and screen readers announce it. Cloud models, which manage their own window, show their token count. +### Fixed +- **The "Add tag" button is fully visible again.** In the Manage tags dialog, the name box was a + fixed width, which pushed the button past the dialog's edge and cut it off. The name box now + shrinks to fit, so the color picker and the whole button always fit on the row. + ## [0.15.0] — 2026-09-10 **A new AI foundation, plans you can resume, and more ways to work alongside your agents.** diff --git a/src/MandoCode.Desktop/MainWindow.Tags.cs b/src/MandoCode.Desktop/MainWindow.Tags.cs index 50080eb..c5b33c9 100644 --- a/src/MandoCode.Desktop/MainWindow.Tags.cs +++ b/src/MandoCode.Desktop/MainWindow.Tags.cs @@ -129,7 +129,6 @@ private async Task ShowTagManagerAsync(TagScope scope, string title) var input = new TextBox { PlaceholderText = "New tag (for example: database)", - MinWidth = 300, }; var list = new ListView { @@ -186,7 +185,14 @@ void Refresh() TextWrapping = TextWrapping.Wrap, Opacity = 0.7, }); - var addRow = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 8 }; + // The dialog caps its content near 500px, so the name box takes whatever the color picker + // and button leave. A horizontal StackPanel sized the box first and pushed the button off the edge. + var addRow = new Grid { ColumnSpacing = 8 }; + addRow.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); + addRow.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto }); + addRow.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto }); + Grid.SetColumn(color, 1); + Grid.SetColumn(add, 2); addRow.Children.Add(input); addRow.Children.Add(color); addRow.Children.Add(add);