The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix pagination input style, fix debouncing issues, add max input page control
Francisco Mazzoni6d28a963d6f6
diff --git a/studio/components/grid/components/footer/pagination/Pagination.tsx b/studio/components/grid/components/footer/pagination/Pagination.tsxindex 8bc26536eed..31609a32fd0 100644--- a/studio/components/grid/components/footer/pagination/Pagination.tsx+++ b/studio/components/grid/components/footer/pagination/Pagination.tsx@@ -28,10 +28,6 @@ const Pagination: FC<PaginationProps> = () => {const maxPages = Math.ceil(state.totalRows / state.rowsPerPage)const totalPages = state.totalRows > 0 ? maxPages : 1- useEffect(() => {- if (state.page != page) setPage(state.page)- }, [state.page, page])-// [Joshen] Oddly without this, state.selectedRows will be staleuseEffect(() => {}, [state.selectedRows])@@ -93,7 +89,7 @@ const Pagination: FC<PaginationProps> = () => {function onPageChange(event: React.ChangeEvent<HTMLInputElement>) {const value = event.target.value- const pageNum = Number(value)+ const pageNum = Number(value) > maxPages ? maxPages : Number(value)setPage(pageNum)updatePageDebounced(pageNum, dispatch)}@@ -120,7 +116,6 @@ const Pagination: FC<PaginationProps> = () => {<InputNumbervalue={page}onChange={onPageChange}- className="sb-grid-pagination-input"size="tiny"style={{width: '3rem',