Repository navigation
Even out the spacing on the Git Repositories, Drivers and Agent Skills pages - #5846
Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits intoNov 25, 2026
Merged
Conversation
…s pages The main window keeps 10 DIP below every page, on top of each page's own bottom margin. Git Repositories and Drivers use an 8 DIP gutter, so their bottom edge sat 18 DIP from the window while the sides sat at 8; Agent Skills showed 22 against 16. The host margin cannot simply be dropped: the packages pages' order-by bar uses a -8 bottom margin to sit in it. Each page now subtracts the host's 10 from its own bottom margin instead (8,6,8,-2 and 16,12,16,6), which measured 8/8 on Drivers and Git Repositories in the running app. On the Git Repositories page, the panel under the clones was also off: - The splitter template hard-coded an 8 DIP inset, sized for the operation cards under the main window's splitter, so the Git page's hover track sat 8 DIP inside its cards. The inset is now the style's Padding (still 8,0 by default, so the operations splitter is unchanged) and the Git page sets it to 0. - The Worktrees/Branches selector uses 4/8 vertical padding to leave room for its selection pill, while the Reload, Prune missing and Delete merged buttons used 4/4, so they were 4 DIP shorter and their labels sat on a different line. They now stretch to the selector's height with the same padding. - The selector row had 12 DIP above it (the splitter row) and 4 below it; the bottom margin is now 12. The new layout test loads the real common styles and fails on the old XAML (buttons 4 DIP off, then an 8 DIP gap difference). Fixes #5838 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of the page-gutter and toolbar-alignment changes.
No open issues 🎉
What changed in this PR
Addresses #5838 by balancing page gutters and aligning controls across the Git Repositories, Drivers, and Agent Skills pages.
Changes:
- Adjusts page bottom margins to account for the main window’s existing gutter.
- Makes the splitter track inset configurable and aligns Git toolbar buttons and selector spacing.
- Adds a layout regression test for Git toolbar heights, text alignment, and card spacing.
| File | Description |
|---|---|
src/UniGetUI.Tests/GitRepositoriesTests.cs |
Adds assertions for toolbar alignment and balanced card spacing. |
src/UniGetUI.Avalonia/Views/Pages/GitRepositoriesPage.axaml |
Balances gutters, removes the splitter inset, and aligns toolbar controls. |
src/UniGetUI.Avalonia/Views/Pages/DriversPage.axaml |
Adjusts the bottom margin to match the side gutters. |
src/UniGetUI.Avalonia/Views/Pages/AgentSkillsPage.axaml |
Adjusts the bottom margin to match the side gutters. |
src/UniGetUI.Avalonia/Views/MainWindow.axaml |
Uses splitter padding for the track inset while preserving the operations default. |
Review effort: Balanced
There was a problem hiding this comment.
🤖 Pull request was approved automatically: the AI review is complete and all its review threads are resolved. 🎉
Integration Details
{
"deliveryId": "81db42ec-e900-11f1-99b8-b5eb16a7fc3c",
"headSha": "fae42018709725dc901e60ea1203471b775e5a66",
"reviewer": "copilot-pull-request-reviewer[bot]"
}
Gabriel Dufresne (GabrielDuf)
deleted the
fix/5838-extension-page-spacing
branch
November 25, 2026 19:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5838
Root cause
MainWindowkeeps 10 DIP below every page (TransitioningContentControl Margin="0,0,0,10"), on top of each page's own bottom margin. Git Repositories and Drivers use an 8 DIP gutter, so their bottom edge sat 18 DIP from the window and the sides 8; Agent Skills showed 22 against 16. The host margin can't just be removed: the packages pages' order-by bar usesMargin="0,-4,0,-8"to sit inside it and would touch the window edge.winui-horizontal-splittertemplate hard-coded an 8 DIP inset sized for the operation cards, so on the Git page the hover track sat 8 DIP inside the cards.Fix
8,6,8,-2, Agent Skills16,12,16,6.Padding(default8,0, so the operations splitter is unchanged); the Git page setsPadding="0".8,4,8,8padding, and the row's bottom margin is 12.