Skip to content

Commit

Permalink
AppContent: add two column layout for larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka committed Apr 26, 2019
1 parent a877de9 commit 7bfc477
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/apps/AppCenter/InstalledApps/AppContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
{!!repoDetails && (
<React.Fragment>
<Heading2>Details</Heading2>
<Markdown>
<Markdown css={above('large') && 'columns: 2;'}>
{
/* eslint-disable react/prop-types */
remark()
.use(remark2react, {
remarkReactComponents: {
Expand All @@ -164,6 +165,7 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
},
})
.processSync(repoDetails).contents
/* eslint-enable react/prop-types */
}
</Markdown>
</React.Fragment>
Expand Down Expand Up @@ -220,9 +222,11 @@ const Markdown = styled.section`
margin-top: ${1 * GU}px;
padding-right: ${1 * GU}px;
h2,
h3 {
h3,
h4 {
font-weight: bold;
margin: ${1 * GU}px 0;
break-after: avoid;
}
p {
margin: ${1 * GU}px 0;
Expand Down

0 comments on commit 7bfc477

Please sign in to comment.