fix(ui): tweak footer padding and animation speed
This commit is contained in:
parent
0a4dd39b82
commit
9cb566681e
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fadeIn {
|
.fadeIn {
|
||||||
animation: fadein 2s;
|
animation: fadein 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadein {
|
@keyframes fadein {
|
||||||
|
@ -62,7 +62,7 @@ export const Main: FC = () => {
|
|||||||
|
|
||||||
// accounts for sidebar width when online in desktop
|
// accounts for sidebar width when online in desktop
|
||||||
const showChat = online && !chatDisabled && isChatVisible;
|
const showChat = online && !chatDisabled && isChatVisible;
|
||||||
const dynamicPadding = showChat && !isMobile ? '340px' : '0px';
|
const dynamicFooterPadding = showChat && !isMobile ? '340px' : '20px';
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setupNoLinkReferrer(layoutRef.current);
|
setupNoLinkReferrer(layoutRef.current);
|
||||||
@ -200,7 +200,7 @@ export const Main: FC = () => {
|
|||||||
style={displayFooter ? { display: 'flex' } : { display: 'none' }}
|
style={displayFooter ? { display: 'flex' } : { display: 'none' }}
|
||||||
className={styles.fadeIn}
|
className={styles.fadeIn}
|
||||||
>
|
>
|
||||||
<Footer version={version} dynamicPadding={dynamicPadding} />
|
<Footer version={version} dynamicPadding={dynamicFooterPadding} />
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
<Noscript />
|
<Noscript />
|
||||||
|
Loading…
Reference in New Issue
Block a user