Files
quiver-launcher/Services/EntryFormOverlayLayout.cs
T
Thomas GeorgiadisandCursor 2c85fa0370 feat: update Quiver Launcher to support .NET 10 and enhance UI/UX
- Introduce Android app
- Migrate project files to .NET 10, updating dependencies and workflows.
- Migrate project to Avalonia 12
- Refactor App.axaml to include a ResourceDictionary for theme management.
- Introduce new styles for gamepad navigation and focus rings.
- Implement hosted main view management for better application lifecycle handling.
- Remove deprecated MainWindow.Mods.cs file and related code.
- Update README to reflect changes in project structure and requirements.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 20:06:33 +10:00

24 lines
729 B
C#

namespace QuiverLauncher.Services;
/// <summary>
/// Caps the Create/Edit App Entry field scroller so tall screens show more
/// fields, while short screens still leave room for title and buttons.
/// </summary>
internal static class EntryFormOverlayLayout
{
public const double ChromeAllowance = 240;
public const double MinScrollHeight = 400;
public const double MaxScrollHeight = 760;
public static double? ResolveScrollMaxHeight(double availableHeight, bool fillAvailable)
{
if (fillAvailable)
return null;
if (availableHeight <= 0)
return MaxScrollHeight;
return Math.Clamp(availableHeight - ChromeAllowance, MinScrollHeight, MaxScrollHeight);
}
}