diff --git a/nora-registry/src/ui/templates.rs b/nora-registry/src/ui/templates.rs index ae45f63..7e778f7 100644 --- a/nora-registry/src/ui/templates.rs +++ b/nora-registry/src/ui/templates.rs @@ -341,7 +341,7 @@ pub fn render_registry_list_paginated( }; // Pagination - let total_pages = (total + limit - 1) / limit; + let total_pages = total.div_ceil(limit); let start_item = if total == 0 { 0 } else {