mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-04 14:14:39 -04:00
* Implemented a basic jump bar for the library view. This currently just interacts with existing pagination controls and is not inlined with infinite scroll yet. This is a first pass implementation. * Refactored time estimates into the reading service. * Cleaned up when the jump bar is shown to mimic pagination controls * Cleanup up code in reader service. * Scroll to card when selecting a jump key that is shown on the current page. * Ensure estimated times always has the smaller number on left hand side. * Fixed a bug with a missing vertical rule * Fixed an off by 1 pixel for search overlay
21 lines
467 B
C#
21 lines
467 B
C#
namespace API.DTOs.JumpBar;
|
|
|
|
/// <summary>
|
|
/// Represents an individual button in a Jump Bar
|
|
/// </summary>
|
|
public class JumpKeyDto
|
|
{
|
|
/// <summary>
|
|
/// Number of items in this Key
|
|
/// </summary>
|
|
public int Size { get; set; }
|
|
/// <summary>
|
|
/// Code to use in URL (url encoded)
|
|
/// </summary>
|
|
public string Key { get; set; }
|
|
/// <summary>
|
|
/// What is visible to user
|
|
/// </summary>
|
|
public string Title { get; set; }
|
|
}
|