Skip to content

Commit 356ab88

Browse files
authored
Merge pull request #1406 from prezly/site-preview-label-on-preview-banner
Added a "Site preview" label to the preview banner
2 parents aafd161 + b1535d8 commit 356ab88

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/modules/PreviewBar/PreviewBar.module.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
background-color: $color-base-900;
33
display: flex;
44
align-items: center;
5-
gap: $spacing-5;
5+
gap: $spacing-3;
66
position: rel;
77
padding-top: $spacing-3;
88

@@ -14,10 +14,6 @@
1414
@include tablet-up {
1515
padding-bottom: $spacing-3;
1616
}
17-
18-
&.noDescription {
19-
padding-bottom: $spacing-3;
20-
}
2117
}
2218

2319
.appLink {

src/modules/PreviewBar/PreviewBar.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function PreviewBar({ newsroom }: Props) {
3535
}
3636

3737
return (
38-
<div className={classNames(styles.wrapper, { [styles.noDescription]: !isSecretStoryPage })}>
38+
<div className={styles.wrapper}>
3939
<a
4040
className={styles.appLink}
4141
href="https://rock.prezly.com"
@@ -49,11 +49,17 @@ export function PreviewBar({ newsroom }: Props) {
4949
>
5050
<IconPrezly />
5151
</a>
52-
{isSecretStoryPage && (
52+
53+
{isSecretStoryPage ? (
5354
<p className={styles.description}>
5455
This is a preview with a temporary URL which will change after publishing.
5556
</p>
57+
) : (
58+
<p className={styles.description}>
59+
Site preview
60+
</p>
5661
)}
62+
5763
<div className={styles.actions}>
5864
<a
5965
className={styles.action}

0 commit comments

Comments
 (0)