slightly improve mobile style on top page
This commit is contained in:
parent
047e84ac8c
commit
77739c971a
3 changed files with 30 additions and 14 deletions
|
@ -28,20 +28,22 @@ function TopPage(props: Props) {
|
|||
defaultFreshness={FRESH_ALL}
|
||||
defaultOrderBy={ORDER_BY_TOP}
|
||||
meta={
|
||||
<I18nMessage
|
||||
tokens={{
|
||||
repost: (
|
||||
<Button
|
||||
button="secondary"
|
||||
navigate={`/$/${PAGES.REPOST_NEW}?to=${queryName}`}
|
||||
label={__('Repost Here')}
|
||||
/>
|
||||
),
|
||||
publish: <Button button="secondary" onClick={() => beginPublish(queryName)} label={'Publish Here'} />,
|
||||
}}
|
||||
>
|
||||
%repost% %publish%
|
||||
</I18nMessage>
|
||||
<div className="search__top-links">
|
||||
<I18nMessage
|
||||
tokens={{
|
||||
repost: (
|
||||
<Button
|
||||
button="secondary"
|
||||
navigate={`/$/${PAGES.REPOST_NEW}?to=${queryName}`}
|
||||
label={__('Repost Here')}
|
||||
/>
|
||||
),
|
||||
publish: <Button button="secondary" onClick={() => beginPublish(queryName)} label={'Publish Here'} />,
|
||||
}}
|
||||
>
|
||||
%repost% %publish%
|
||||
</I18nMessage>
|
||||
</div>
|
||||
}
|
||||
includeSupportAction
|
||||
renderProperties={claim => (
|
||||
|
|
|
@ -253,9 +253,14 @@
|
|||
.claim-preview__actions {
|
||||
align-self: flex-end;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin-top: auto;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: $breakpoint-small) {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
.claim-preview__primary-actions {
|
||||
|
|
|
@ -35,3 +35,12 @@
|
|||
margin-top: var(--spacing-s);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue