Skip to content

auto-size the operations panel to its rows, capped at 3#5153

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
operations-panel-adaptive-height
Jul 20, 2026
Merged

auto-size the operations panel to its rows, capped at 3#5153
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
operations-panel-adaptive-height

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request improves the behavior and user experience of the operations panel in the main window by making its size more responsive and preserving user adjustments. The main changes include tracking when the user resizes the panel, automatically sizing the panel based on its content, and updating the UI more reliably when operations change.

Operations panel resizing and auto-sizing improvements:

  • The panel now tracks whether the user has manually resized it (_userResizedPanel), and only auto-sizes if the user hasn't adjusted it.
  • Introduced a method to automatically compute the panel's height based on the number and size of operation items, for a better default experience.
  • The minimum height for the operations panel was reduced from 80px to 48px for improved layout flexibility.

UI event handling and state management:

  • The code now listens for changes in the operations collection and splitter drag events to update the panel size and track user interaction, ensuring the panel responds correctly to content and user actions.
  • The grid splitter is now named (OperationsSplitter) for event hookup, and relevant event handlers are added to manage resizing logic.

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.

Pull request overview

Makes the operations panel auto-size to three rows while preserving manual resizing.

Changes:

  • Computes panel height from visible operation rows.
  • Tracks collection and splitter events.
  • Reduces minimum panel height and names the splitter.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
MainWindow.axaml.cs Adds auto-sizing and resize-state logic.
MainWindow.axaml Names the operations splitter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/UniGetUI.Avalonia/Views/MainWindow.axaml.cs
Comment thread src/UniGetUI.Avalonia/Views/MainWindow.axaml.cs
@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit fff4dc5 into main Jul 20, 2026
5 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the operations-panel-adaptive-height branch July 20, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT] Make this update progress thing adaptive to the content

3 participants