diff --git a/packages/stateless/components/HorizontalScroller.tsx b/packages/stateless/components/HorizontalScroller.tsx index c35faad93..0ab0f2461 100644 --- a/packages/stateless/components/HorizontalScroller.tsx +++ b/packages/stateless/components/HorizontalScroller.tsx @@ -14,6 +14,7 @@ export interface HorizontalScrollerProps

{ itemClassName?: string containerClassName?: string shadowClassName?: string + contentContainerClassName?: string } export const HorizontalScroller =

({ @@ -22,6 +23,7 @@ export const HorizontalScroller =

({ itemClassName, containerClassName, shadowClassName, + contentContainerClassName, }: HorizontalScrollerProps

) => { const { t } = useTranslation() @@ -76,7 +78,12 @@ export const HorizontalScroller =

({ className="no-scrollbar w-full overflow-scroll" ref={scrollableContainerRef} > -

+
{items.loading ? [...Array(5)].map((_, index) => (
diff --git a/packages/stateless/pages/Home.tsx b/packages/stateless/pages/Home.tsx index da708694d..2a2ede02f 100644 --- a/packages/stateless/pages/Home.tsx +++ b/packages/stateless/pages/Home.tsx @@ -169,11 +169,10 @@ export const Home = ({ (chainGovDaos.loading || chainGovDaos.data.length > 0) && UNDO_PAGE_PADDING_HORIZONTAL_CLASSES )} - // Margin offsets container padding. + contentContainerClassName="px-6" itemClassName="w-64" items={chainGovDaos} - // Max width of 5xl = 64rem, container padding of 6 = 1.5rem - shadowClassName="w-[max((100%-64rem)/2,1.5rem)]" + shadowClassName="w-6" />
)} @@ -206,10 +205,10 @@ export const Home = ({ (featuredDaos.loading || featuredDaos.data.length > 0) && UNDO_PAGE_PADDING_HORIZONTAL_CLASSES )} + contentContainerClassName="px-6" itemClassName="w-64" items={featuredDaos} - // Max width of 5xl = 64rem, container padding of 6 = 1.5rem - shadowClassName="w-[max((100%-64rem)/2,1.5rem)]" + shadowClassName="w-6" />