This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@include screen(tablet) {
|
@include screen(tablet) {
|
||||||
//sets the position of tabbed content for online mode
|
position: relative;
|
||||||
top: 430px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include screen(mobile) {
|
@include screen(mobile) {
|
||||||
@@ -30,6 +29,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.online {
|
||||||
|
@include screen(tablet) {
|
||||||
|
//sets the position of tabbed content for online mode
|
||||||
|
position: absolute;
|
||||||
|
top: 430px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mobileNoTabs {
|
.mobileNoTabs {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ export const Content: FC = () => {
|
|||||||
setShowFollowModal={setShowFollowModal}
|
setShowFollowModal={setShowFollowModal}
|
||||||
supportFediverseFeatures={supportFediverseFeatures}
|
supportFediverseFeatures={supportFediverseFeatures}
|
||||||
chatEnabled={isChatAvailable}
|
chatEnabled={isChatAvailable}
|
||||||
|
online={online}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Col span={24} style={{ paddingRight: dynamicPadding }}>
|
<Col span={24} style={{ paddingRight: dynamicPadding }}>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import React, { ComponentType, FC } from 'react';
|
|||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { Skeleton, TabsProps } from 'antd';
|
import { Skeleton, TabsProps } from 'antd';
|
||||||
import { ErrorBoundary } from 'react-error-boundary';
|
import { ErrorBoundary } from 'react-error-boundary';
|
||||||
|
import classNames from 'classnames';
|
||||||
import { SocialLink } from '../../../interfaces/social-link.model';
|
import { SocialLink } from '../../../interfaces/social-link.model';
|
||||||
import styles from './Content.module.scss';
|
import styles from './Content.module.scss';
|
||||||
import { CustomPageContent } from '../CustomPageContent/CustomPageContent';
|
import { CustomPageContent } from '../CustomPageContent/CustomPageContent';
|
||||||
@@ -22,6 +23,7 @@ export type MobileContentProps = {
|
|||||||
currentUser: CurrentUser;
|
currentUser: CurrentUser;
|
||||||
showChat: boolean;
|
showChat: boolean;
|
||||||
chatEnabled: boolean;
|
chatEnabled: boolean;
|
||||||
|
online: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
// lazy loaded components
|
// lazy loaded components
|
||||||
@@ -90,6 +92,7 @@ export const MobileContent: FC<MobileContentProps> = ({
|
|||||||
chatEnabled,
|
chatEnabled,
|
||||||
setShowFollowModal,
|
setShowFollowModal,
|
||||||
supportFediverseFeatures,
|
supportFediverseFeatures,
|
||||||
|
online,
|
||||||
}) => {
|
}) => {
|
||||||
const aboutTabContent = (
|
const aboutTabContent = (
|
||||||
<>
|
<>
|
||||||
@@ -134,7 +137,7 @@ export const MobileContent: FC<MobileContentProps> = ({
|
|||||||
<ComponentErrorFallback error={error} resetErrorBoundary={resetErrorBoundary} />
|
<ComponentErrorFallback error={error} resetErrorBoundary={resetErrorBoundary} />
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className={styles.lowerSectionMobile}>
|
<div className={classNames([styles.lowerSectionMobile, online && styles.online])}>
|
||||||
{items.length > 1 && <Tabs defaultActiveKey="0" items={items} />}
|
{items.length > 1 && <Tabs defaultActiveKey="0" items={items} />}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.mobileNoTabs}>{items.length <= 1 && aboutTabContent}</div>
|
<div className={styles.mobileNoTabs}>{items.length <= 1 && aboutTabContent}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user