Skip to content

Commit

Permalink
[desk-tool] Style the "No changes" state
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent af78995 commit 2b89e72
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
@import 'part:@sanity/base/theme/variables-style';

.root {
flex: 1;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.box {
max-width: 300px;
padding-bottom: var(--extra-large-padding);
}

.heading {
font-size: var(--font-size-small);
line-height: var(--line-height-small);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ import styles from './empty.css'

export function EmptyContent() {
return (
<>
<h3 className={styles.heading}>There are no changes to this document</h3>
<div className={styles.root}>
<div className={styles.box}>
<h3 className={styles.heading}>There are no changes to this document</h3>

<div className={styles.content}>
<p>
Either edit the document or change the selection in the timeline menu to see the changes
appear in this panel.
</p>
<div className={styles.content}>
<p>
Either edit the document or change the selection in the timeline menu to see the changes
appear in this panel.
</p>
</div>
</div>
</>
</div>
)
}

0 comments on commit 2b89e72

Please sign in to comment.