Skip to content

Even out the spacing on the Git Repositories, Drivers and Agent Skills pages - #5846

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5838-extension-page-spacing
Nov 25, 2026
Merged

Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5838-extension-page-spacing

Conversation

@GabrielDuf

@GabrielDuf Gabriel Dufresne (GabrielDuf) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5838

Root cause

  • Bottom gutter twice the side gutter. MainWindow keeps 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 uses Margin="0,-4,0,-8" to sit inside it and would touch the window edge.
  • Splitter track narrower than the cards. The winui-horizontal-splitter template 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.
  • Reload / Prune missing / Delete merged off the selector's line. The Worktrees/Branches segments use 4/8 vertical padding to make room for the selection pill; the buttons used 4/4, so they were 4 DIP shorter and their labels sat on a different line.
  • Selector row closer to the lower card. 12 DIP above it (the splitter row), 4 below.

Fix

  • Each page subtracts the host's 10 from its own bottom margin: Git Repositories and Drivers 8,6,8,-2, Agent Skills 16,12,16,6.
  • The splitter inset is now the style's Padding (default 8,0, so the operations splitter is unchanged); the Git page sets Padding="0".
  • The Git panel's toolbar buttons stretch to the selector's height with the same 8,4,8,8 padding, and the row's bottom margin is 12.

…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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@randy-but-a-ro randy-but-a-ro Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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]"
}

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit e770348 into main Nov 25, 2026
14 of 15 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/5838-extension-page-spacing branch November 25, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement to WingetUI

Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT] Improve the appearance of Git Repositories page

2 participants