Skip to content

Fix unclickable, unselectable links in Avalonia package details#4950

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/avalonia-package-detail-links
Jun 17, 2026
Merged

Fix unclickable, unselectable links in Avalonia package details#4950
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/avalonia-package-detail-links

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request refactors how links and license/download rows are rendered in PackageDetailsWindow.axaml.cs, improving code clarity, consistency, and user interaction. It also enhances error handling when opening URLs. The most important changes are grouped below:

UI Refactoring and Consistency Improvements:

  • Refactored the rendering of inline rows with URLs and license/download rows to use helper methods (BuildLinkRow, CreateLinkBlock, BoldLabel) for more consistent layout and code reuse. Now, only the URL part is a link, and labels are always rendered in bold.
  • Improved the download row to show a bold, selectable link when available, or a consistent "not available" message when not.

User Interaction Enhancements:

  • Updated link activation so that only a clean click (not a drag/select) triggers the link, improving usability for selectable, copyable hyperlinks.

Error Handling and Logging:

  • Improved error handling in OpenUrl by logging errors with Logger.Error when a URL fails to open, instead of silently swallowing exceptions.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit cfd5ae0 into main Jun 17, 2026
4 of 5 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/avalonia-package-detail-links branch June 17, 2026 14:31
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.

[BUG] WinUI 3 UI — Hyperlinks appear clickable (cursor changes) but cannot be clicked or copied

2 participants