fix spacing on publish page when user has no lbc

This commit is contained in:
Sean Yesmunt 2020-04-15 15:32:47 -04:00
parent 4cc2d00f19
commit 63092ce7da
2 changed files with 32 additions and 29 deletions

View file

@ -23,8 +23,9 @@ function PublishPage(props: Props) {
return ( return (
<Page> <Page>
{balance === 0 && ( {balance === 0 ? (
<Fragment> <Fragment>
<div className="section">
<Yrbl <Yrbl
title={__("You can't publish things quite yet")} title={__("You can't publish things quite yet")}
subtitle={ subtitle={
@ -48,10 +49,14 @@ function PublishPage(props: Props) {
</Fragment> </Fragment>
} }
/> />
</div>
<div className="section">
<RewardAuthIntro /> <RewardAuthIntro />
</div>
</Fragment> </Fragment>
)} ) : (
<PublishForm scrollToTop={scrollToTop} disabled={balance === 0} /> <PublishForm scrollToTop={scrollToTop} disabled={balance === 0} />
)}
</Page> </Page>
); );
} }

View file

@ -201,9 +201,7 @@
.card__body { .card__body {
padding: var(--spacing-large); padding: var(--spacing-large);
border-top: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
&:not(.card__body--no-title) {
padding-top: 0;
}
&.card__body--table { &.card__body--table {
padding: 0; padding: 0;
border-top: 1px solid var(--color-border); border-top: 1px solid var(--color-border);