0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added Table wrapper

refs https://github.com/TryGhost/Product/issues/3881
This commit is contained in:
Djordje Vlaisavljevic 2023-09-14 12:19:34 +01:00
parent dff8c38547
commit b1cd7dd898

View file

@ -69,12 +69,15 @@ const Table: React.FC<TableProps> = ({children, borderTop, hint, hintSeparator,
<>
<div className='w-full overflow-x-auto'>
{pageTitle && <Heading>{pageTitle}</Heading>}
{!isLoading && <table ref={table} className={tableClasses}>
<tbody>
{children}
</tbody>
</table>}
{isLoading && <CenteredLoadingIndicator delay={200} style={loadingStyle} />}
{/* TODO: make this div have the same height across all pages */}
<div>
{!isLoading && <table ref={table} className={tableClasses}>
<tbody>
{children}
</tbody>
</table>}
{isLoading && <CenteredLoadingIndicator delay={200} style={loadingStyle} />}
</div>
{(hint || pagination) &&
<div className="-mt-px">
{(hintSeparator || pagination) && <Separator />}