Add UserBreakpoint API, disable width override after configured breakpoint

This commit is contained in:
Amelia 2025-06-11 01:16:01 +02:00
parent 43c4969d5c
commit b6e46e2f2d
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
19 changed files with 3942 additions and 47 deletions

View file

@ -4,6 +4,14 @@ using API.Entities.Enums.UserPreferences;
namespace API.Entities;
public enum BreakPoint
{
Never = 0,
Mobile = 1,
Tablet = 2,
Desktop = 3,
}
public class AppUserReadingProfile
{
public int Id { get; set; }
@ -72,6 +80,10 @@ public class AppUserReadingProfile
/// Manga Reader Option: Optional fixed width override
/// </summary>
public int? WidthOverride { get; set; } = null;
/// <summary>
/// Manga Reader Option: Disable the width override if the screen is past the breakpoint
/// </summary>
public BreakPoint DisableWidthOverride { get; set; } = BreakPoint.Never;
#endregion