diff --git a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
index 6c104aa..d8c2cf6 100644
--- a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
+++ b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
@@ -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"""
<.icon_button icon_name="hero-arrow-path" class="h-10 w-10" phx-click="reload_page" />
diff --git a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex
index de4c7ab..fcc6ef5 100644
--- a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex
+++ b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex
@@ -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"""