From 7a48e8cc673c14003445d401f8f8d5a74b5b6318 Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 16 Dec 2020 11:07:00 +0800 Subject: [PATCH] chore: Use no-wrap --- assets/index.less | 3 ++- src/Item.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/index.less b/assets/index.less index 3480ae6..b3d0d50 100644 --- a/assets/index.less +++ b/assets/index.less @@ -2,7 +2,8 @@ .@{overflow-prefix-cls} { display: flex; - flex-wrap: wrap; + // flex-wrap: wrap; + flex-wrap: nowrap; max-width: 100%; position: relative; diff --git a/src/Item.tsx b/src/Item.tsx index c49152e..59e30aa 100644 --- a/src/Item.tsx +++ b/src/Item.tsx @@ -53,8 +53,8 @@ export default function Item(props: ItemProps) { className={classNames(prefixCls, className)} style={{ opacity: mergedHidden ? 0.2 : 1, - height: mergedHidden ? 0 : undefined, - overflowY: mergedHidden ? 'hidden' : undefined, + // height: mergedHidden ? 0 : undefined, + // overflowY: mergedHidden ? 'hidden' : undefined, order: responsive ? order : undefined, pointerEvents: mergedHidden ? 'none' : undefined, ...style,