better styling

This commit is contained in:
reesporte 2021-11-03 13:14:28 -05:00
parent f9c78091ab
commit 1585313a0c

View file

@ -59,25 +59,31 @@ export const Pager: FC<PagerProps> = ({
</div>
{showTotal && (
<div className={css.total}>
{totalResultsCount > 1000 && (
<span
style={{
display: "inline",
verticalAlign: "middle",
marginRight: ".5em",
}}
>
<Tooltip
title={
"This query has " +
totalResultsCount +
" results. Due to browser memory limitations, you will only be able to view " +
1000 +
" of them."
}
>
<ErrorOutlineIcon fontSize="small" color="error" />
</Tooltip>
</span>
)}
Showing {startResults} - {endResults} of{` `}
<Pluralize singular="result" count={totalItems} />
</div>
)}
{totalResultsCount > 1000 && (
<span style={{ display: "inline" }}>
<Tooltip
title={
"This query has " +
totalResultsCount +
" results. Due to browser memory limitations, you will only be able to view " +
1000 +
" of them."
}
>
<ErrorOutlineIcon fontSize="small" color="error" />
</Tooltip>
</span>
)}
</div>
);
};