We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6592fb commit 1ca34b6Copy full SHA for 1ca34b6
core/src/types/index.tsx
@@ -60,8 +60,8 @@ export const TypeString: FC<TypeProps> = ({ children = '', keyName }) => {
60
const { shortenTextAfterLength: length = 30 } = useStore();
61
const { as, render, ...reset } = Str;
62
const childrenStr = children as string;
63
- const [shorten, setShorten] = useState(length && childrenStr.length >= length);
64
- useEffect(() => setShorten(length && childrenStr.length >= length), [length]);
+ const [shorten, setShorten] = useState(length && childrenStr.length > length);
+ useEffect(() => setShorten(length && childrenStr.length > length), [length]);
65
const Comp = as || 'span';
66
const style: React.CSSProperties = {
67
...defalutStyle,
0 commit comments