diff --git a/src/layout/card/grid/NitroCardGridView.tsx b/src/layout/card/grid/NitroCardGridView.tsx index a9e611bc..97c17237 100644 --- a/src/layout/card/grid/NitroCardGridView.tsx +++ b/src/layout/card/grid/NitroCardGridView.tsx @@ -3,7 +3,7 @@ import { NitroCardGridViewProps } from './NitroCardGridView.types'; export const NitroCardGridView: FC = props => { - const { columns = 5, gap = 2, className = '', style = null, children = null, ...rest } = props; + const { columns = 0, gap = 2, className = '', style = null, children = null, ...rest } = props; const getClassName = useMemo(() => { @@ -18,7 +18,11 @@ export const NitroCardGridView: FC = props => { const newStyle = { ...style }; - //newStyle['--bs-columns'] = columns.toString(); + if(columns && (columns >= 1)) + { + newStyle['grid-template-columns'] = 'unset'; + newStyle['--bs-columns'] = columns.toString(); + } return newStyle; }, [ style, columns ]); diff --git a/src/views/avatar-editor/views/figure-set/AvatarEditorFigureSetView.tsx b/src/views/avatar-editor/views/figure-set/AvatarEditorFigureSetView.tsx index f664453c..28562fe8 100644 --- a/src/views/avatar-editor/views/figure-set/AvatarEditorFigureSetView.tsx +++ b/src/views/avatar-editor/views/figure-set/AvatarEditorFigureSetView.tsx @@ -22,7 +22,7 @@ export const AvatarEditorFigureSetView: FC = pro }, [ model, category, setMaxPaletteCount ]); return ( - + { (category.parts.length > 0) && category.parts.map((item, index) => { return ; diff --git a/src/views/avatar-editor/views/palette-set/AvatarEditorPaletteSetView.tsx b/src/views/avatar-editor/views/palette-set/AvatarEditorPaletteSetView.tsx index 8b32c044..31a113c0 100644 --- a/src/views/avatar-editor/views/palette-set/AvatarEditorPaletteSetView.tsx +++ b/src/views/avatar-editor/views/palette-set/AvatarEditorPaletteSetView.tsx @@ -18,7 +18,7 @@ export const AvatarEditorPaletteSetView: FC = p }, [ model, category, paletteSet, paletteIndex ]); return ( - + { (paletteSet.length > 0) && paletteSet.map((item, index) => { return selectColor(item) } />; diff --git a/src/views/avatar-editor/views/wardrobe/AvatarEditorWardrobeView.tsx b/src/views/avatar-editor/views/wardrobe/AvatarEditorWardrobeView.tsx index f6c4e68d..840736ce 100644 --- a/src/views/avatar-editor/views/wardrobe/AvatarEditorWardrobeView.tsx +++ b/src/views/avatar-editor/views/wardrobe/AvatarEditorWardrobeView.tsx @@ -67,7 +67,7 @@ export const AvatarEditorWardrobeView: FC = props return (
- + { figures }
diff --git a/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx b/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx index edf293c2..f68c2c50 100644 --- a/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx +++ b/src/views/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx @@ -143,7 +143,7 @@ export const CatalogLayoutPetView: FC = props => return (
- + { !colorsShowing && (sellablePalettes.length > 0) && sellablePalettes.map((palette, index) => { return ( diff --git a/src/views/catalog/views/page/layout/single-bundle/CatalogLayoutSingleBundleView.tsx b/src/views/catalog/views/page/layout/single-bundle/CatalogLayoutSingleBundleView.tsx index bab6711f..fe5eaf41 100644 --- a/src/views/catalog/views/page/layout/single-bundle/CatalogLayoutSingleBundleView.tsx +++ b/src/views/catalog/views/page/layout/single-bundle/CatalogLayoutSingleBundleView.tsx @@ -15,7 +15,7 @@ export const CatalogLayoutSingleBundleView: FC
- + { activeOffer && activeOffer.products && (activeOffer.products.length > 0) && activeOffer.products.map((product, index) => { return diff --git a/src/views/catalog/views/page/offers/CatalogPageOffersView.tsx b/src/views/catalog/views/page/offers/CatalogPageOffersView.tsx index 994bb7d7..620cc498 100644 --- a/src/views/catalog/views/page/offers/CatalogPageOffersView.tsx +++ b/src/views/catalog/views/page/offers/CatalogPageOffersView.tsx @@ -11,7 +11,7 @@ export const CatalogPageOffersView: FC = props => const { activeOffer = null } = catalogState; return ( - + { offers && (offers.length > 0) && offers.map((offer, index) => { return diff --git a/src/views/catalog/views/page/search-result/offers/CatalogSearchResultOffersView.tsx b/src/views/catalog/views/page/search-result/offers/CatalogSearchResultOffersView.tsx index 213aade1..9781545a 100644 --- a/src/views/catalog/views/page/search-result/offers/CatalogSearchResultOffersView.tsx +++ b/src/views/catalog/views/page/search-result/offers/CatalogSearchResultOffersView.tsx @@ -20,7 +20,7 @@ export const CatalogSearchResultOffersView: FC + { offers && (offers.length > 0) && offers.map((offer, index) => { const isActive = (activeOffer && (activeOffer.products[0].furniClassId === offer.id)); diff --git a/src/views/inventory/views/badge/active-results/InventoryActiveBadgeResultsView.tsx b/src/views/inventory/views/badge/active-results/InventoryActiveBadgeResultsView.tsx index 1a62e50a..cc0dc4ea 100644 --- a/src/views/inventory/views/badge/active-results/InventoryActiveBadgeResultsView.tsx +++ b/src/views/inventory/views/badge/active-results/InventoryActiveBadgeResultsView.tsx @@ -8,7 +8,7 @@ export const InventoryActiveBadgeResultsView: FC + { badges && (badges.length > 0) && badges.map(code => { return diff --git a/src/views/inventory/views/furniture/results/InventoryFurnitureResultsView.tsx b/src/views/inventory/views/furniture/results/InventoryFurnitureResultsView.tsx index 0464eb55..34564f89 100644 --- a/src/views/inventory/views/furniture/results/InventoryFurnitureResultsView.tsx +++ b/src/views/inventory/views/furniture/results/InventoryFurnitureResultsView.tsx @@ -8,7 +8,7 @@ export const InventoryFurnitureResultsView: FC + { groupItems && (groupItems.length > 0) && groupItems.map((item, index) => { return diff --git a/src/views/toolbar/ToolbarView.tsx b/src/views/toolbar/ToolbarView.tsx index 3dcd3322..4d10456b 100644 --- a/src/views/toolbar/ToolbarView.tsx +++ b/src/views/toolbar/ToolbarView.tsx @@ -158,7 +158,7 @@ export const ToolbarView: FC = props => }, []); return ( -
+
diff --git a/src/views/user-profile/views/badges-container/BadgesContainerView.tsx b/src/views/user-profile/views/badges-container/BadgesContainerView.tsx index 13e84199..323e9254 100644 --- a/src/views/user-profile/views/badges-container/BadgesContainerView.tsx +++ b/src/views/user-profile/views/badges-container/BadgesContainerView.tsx @@ -9,7 +9,7 @@ export const BadgesContainerView: FC = props => return (
- + { badges && (badges.length > 0) && badges.map((badge, index) => { return (