diff --git a/apps/admin-x-design-system/src/global/Table.tsx b/apps/admin-x-design-system/src/global/Table.tsx index 96a1f0c63d..f6c23cca31 100644 --- a/apps/admin-x-design-system/src/global/Table.tsx +++ b/apps/admin-x-design-system/src/global/Table.tsx @@ -28,6 +28,7 @@ export interface TableProps { pagination?: PaginationData; showMore?: ShowMoreData; fillContainer?: boolean; + horizontalScroll?: boolean; paddingXClassName?: string; } @@ -65,6 +66,7 @@ const Table: React.FC = ({ showMore, isLoading, fillContainer = false, + horizontalScroll = false, paddingXClassName }) => { const table = React.useRef(null); @@ -145,7 +147,7 @@ const Table: React.FC = ({ ); const mainContainerClasses = clsx( - 'overflow-x-auto', + horizontalScroll ? 'overflow-x-auto' : '', fillContainer ? 'absolute inset-0 min-w-full' : 'w-full' );