Skip to content

Commit 21e17ca

Browse files
authored
Merge pull request #28 from datopian/bugfix
[BUG Fix] Pagination and table
2 parents c3d558b + 9f81dfd commit 21e17ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/dataset/search/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function Pagination({
6363
{x + 1}
6464
</button>
6565
))}
66-
{subsetOfPages !== Math.ceil(count / max) && count > 50 && (
66+
{count > max * options.limit && (subsetOfPages + max) * options.limit < count && (
6767
<button
6868
className="font-semibold flex items-center gap-2"
6969
onClick={() => setSubsetOfPages(subsetOfPages + max)}

components/responsiveGrid/TableColValue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function TableColumnValue({ column, value }) {
1515
tabIndex={0}
1616
aria-label={_value}
1717
>
18-
<span className="block max-w-[400px] w-[max-content]">{_value}</span>
18+
<span className="block max-w-[400px] break-words w-[max-content]">{_value}</span>
1919
{isPinned && (
2020
<span className="absolute right-[-1px] h-full w-[1px] bg-gray-100 top-0"></span>
2121
)}

0 commit comments

Comments
 (0)