This commit is contained in:
Amadeus Mader 2026-03-01 22:02:08 +01:00
parent 88257cd151
commit 246a905be6
2 changed files with 2 additions and 4 deletions

View file

@ -6,9 +6,7 @@ defmodule Pinchflat.Pages.HistoryTableLive do
alias Pinchflat.Utils.NumberUtils
alias PinchflatWeb.CustomComponents.TextComponents
@limit 5
def render(%{records: []} = assigns) do
@limit System.get_env("PAGINATION_HISTORY_LIMIT", System.get_env("PAGINATION_LIMIT", "10")) |> String.to_integer() def render(%{records: []} = assigns) do
~H"""
<div class="mb-4 flex items-center">
<.icon_button icon_name="hero-arrow-path" class="h-10 w-10" phx-click="reload_page" />

View file

@ -6,7 +6,7 @@ defmodule PinchflatWeb.Sources.MediaItemTableLive do
alias Pinchflat.Sources
alias Pinchflat.Utils.NumberUtils
@limit 10
@limit System.get_env("PAGINATION_LIMIT", "20") |> String.to_integer()
def render(%{total_record_count: 0} = assigns) do
~H"""