Do not show title on offline banner + add margin
This commit is contained in:
@@ -344,6 +344,7 @@ export const Content: FC = () => {
|
|||||||
)}
|
)}
|
||||||
{!online && !appState.appLoading && (
|
{!online && !appState.appLoading && (
|
||||||
<OfflineBanner
|
<OfflineBanner
|
||||||
|
showsHeader={false}
|
||||||
streamName={name}
|
streamName={name}
|
||||||
customText={offlineMessage}
|
customText={offlineMessage}
|
||||||
notificationsEnabled={browserNotificationsEnabled}
|
notificationsEnabled={browserNotificationsEnabled}
|
||||||
|
|||||||
@@ -9,15 +9,15 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: var(--theme-color-components-text-on-light);
|
color: var(--theme-color-components-text-on-light);
|
||||||
background-color: var(--theme-color-background-main);
|
background-color: var(--theme-color-background-main);
|
||||||
margin: 1rem auto;
|
margin: 3rem auto;
|
||||||
border-radius: var(--theme-rounded-corners);
|
border-radius: var(--theme-rounded-corners);
|
||||||
padding: 1rem;
|
padding: 2.5em;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
border: 1px solid lightgray;
|
border: 1px solid lightgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bodyText {
|
.bodyText {
|
||||||
line-height: 1.5rem;
|
line-height: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export type OfflineBannerProps = {
|
|||||||
lastLive?: Date;
|
lastLive?: Date;
|
||||||
notificationsEnabled: boolean;
|
notificationsEnabled: boolean;
|
||||||
fediverseAccount?: string;
|
fediverseAccount?: string;
|
||||||
|
showsHeader?: boolean;
|
||||||
onNotifyClick?: () => void;
|
onNotifyClick?: () => void;
|
||||||
onFollowClick?: () => void;
|
onFollowClick?: () => void;
|
||||||
};
|
};
|
||||||
@@ -27,6 +28,7 @@ export const OfflineBanner: FC<OfflineBannerProps> = ({
|
|||||||
lastLive,
|
lastLive,
|
||||||
notificationsEnabled,
|
notificationsEnabled,
|
||||||
fediverseAccount,
|
fediverseAccount,
|
||||||
|
showsHeader = true,
|
||||||
onNotifyClick,
|
onNotifyClick,
|
||||||
onFollowClick,
|
onFollowClick,
|
||||||
}) => {
|
}) => {
|
||||||
@@ -74,8 +76,12 @@ export const OfflineBanner: FC<OfflineBannerProps> = ({
|
|||||||
return (
|
return (
|
||||||
<div id="offline-banner" className={styles.outerContainer}>
|
<div id="offline-banner" className={styles.outerContainer}>
|
||||||
<div className={styles.innerContainer}>
|
<div className={styles.innerContainer}>
|
||||||
<div className={styles.header}>{streamName}</div>
|
{showsHeader && (
|
||||||
<Divider className={styles.separator} />
|
<>
|
||||||
|
<div className={styles.header}>{streamName}</div>
|
||||||
|
<Divider className={styles.separator} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<div className={styles.bodyText}>{text}</div>
|
<div className={styles.bodyText}>{text}</div>
|
||||||
{lastLive && (
|
{lastLive && (
|
||||||
<div className={styles.lastLiveDate}>
|
<div className={styles.lastLiveDate}>
|
||||||
|
|||||||
Reference in New Issue
Block a user