fix: truncte longer text (#5150)

pull/5149/head^2
Nafees Nazik 2022-10-27 13:52:03 +05:30 committed by GitHub
parent d0a24f7c3c
commit bf34296864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ const VerticalTabItem = function ({
{props.icon && <props.icon className="mr-[10px] h-[16px] w-[16px] stroke-[2px] md:mt-0" />}
<div>
<span className="flex items-center space-x-2">
<Skeleton as="p">{t(name)}</Skeleton>
<Skeleton title={t(name)} as="p" className="max-w-36 truncate">
{t(name)}
</Skeleton>
{props.isExternalLink ? <Icon.FiExternalLink /> : null}
</span>
{info && (