Fix/UI issue (#946)

Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
Qi
2023-02-11 00:19:21 +08:00
committed by GitHub
parent 8a7393a961
commit d5f4c4210d
52 changed files with 610 additions and 659 deletions
@@ -27,7 +27,9 @@ export const HelpIsland = ({
setShowSpread(!spread);
}}
>
<StyledAnimateWrapper spread={spread}>
<StyledAnimateWrapper
style={{ height: spread ? `${showList.length * 44}px` : 0 }}
>
{showList.includes('contact') && (
<Tooltip content={t('Contact Us')} placement="left-end">
<StyledIconWrapper
+1 -4
View File
@@ -51,10 +51,7 @@ export const StyledIconWrapper = styled('div')(({ theme }) => {
};
});
export const StyledAnimateWrapper = styled('div', {
shouldForwardProp: prop => prop !== 'spread',
})<{ spread: boolean }>(({ spread }) => ({
height: spread ? '88px' : '0',
export const StyledAnimateWrapper = styled('div')(() => ({
transition: 'height 0.2s cubic-bezier(0, 0, 0.55, 1.6)',
overflow: 'hidden',
}));