slightly improve mobile style on top page

This commit is contained in:
Sean Yesmunt 2020-12-16 13:38:18 -05:00
parent 047e84ac8c
commit 77739c971a
3 changed files with 30 additions and 14 deletions

View file

@ -28,20 +28,22 @@ function TopPage(props: Props) {
defaultFreshness={FRESH_ALL} defaultFreshness={FRESH_ALL}
defaultOrderBy={ORDER_BY_TOP} defaultOrderBy={ORDER_BY_TOP}
meta={ meta={
<I18nMessage <div className="search__top-links">
tokens={{ <I18nMessage
repost: ( tokens={{
<Button repost: (
button="secondary" <Button
navigate={`/$/${PAGES.REPOST_NEW}?to=${queryName}`} button="secondary"
label={__('Repost Here')} navigate={`/$/${PAGES.REPOST_NEW}?to=${queryName}`}
/> label={__('Repost Here')}
), />
publish: <Button button="secondary" onClick={() => beginPublish(queryName)} label={'Publish Here'} />, ),
}} publish: <Button button="secondary" onClick={() => beginPublish(queryName)} label={'Publish Here'} />,
> }}
%repost% %publish% >
</I18nMessage> %repost% %publish%
</I18nMessage>
</div>
} }
includeSupportAction includeSupportAction
renderProperties={claim => ( renderProperties={claim => (

View file

@ -253,9 +253,14 @@
.claim-preview__actions { .claim-preview__actions {
align-self: flex-end; align-self: flex-end;
display: flex; display: flex;
flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-top: auto; margin-top: auto;
width: 100%; width: 100%;
@media (min-width: $breakpoint-small) {
flex-direction: row;
}
} }
.claim-preview__primary-actions { .claim-preview__primary-actions {

View file

@ -35,3 +35,12 @@
margin-top: var(--spacing-s); margin-top: var(--spacing-s);
font-weight: var(--font-weight-body); font-weight: var(--font-weight-body);
} }
.search__top-links {
margin-bottom: 0;
margin-top: var(--spacing-xs);
@media (min-width: $breakpoint-small) {
margin-top: 0;
}
}