Skip to content

Commit

Permalink
AppContent: add app details to use all available space in larger view…
Browse files Browse the repository at this point in the history
…ports
  • Loading branch information
AquiGorka committed Apr 24, 2019
1 parent d78f0e4 commit ce1bb39
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/apps/AppCenter/InstalledApps/AppContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {

return (
<Viewport>
{({ below, breakpoints }) => {
{({ above, below, breakpoints }) => {
const compact = appBelow(below, breakpoints.medium)
return (
<div
Expand Down Expand Up @@ -134,9 +134,12 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
flex-direction: ${compact ? 'column' : 'row'};
`}
>
<DetailsGroup compact={compact}>
<DetailsGroup
css={above('large') && 'width: 100%;'}
compact={compact}
>
<Heading2>Description</Heading2>
<div>{description}</div>
<div css={above('large') && 'width: 50%;'}>{description}</div>
<Heading2>Source code</Heading2>
<div>
{sourceUrl ? (
Expand All @@ -160,7 +163,16 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
</React.Fragment>
)}
</DetailsGroup>
<DetailsGroup compact={compact}>
<DetailsGroup
css={`
${above('large') &&
`
position: absolute;
left: calc(50% + 40px);
`}
`}
compact={compact}
>
<Heading2>Installed instances</Heading2>
{instances.map(({ proxyAddress }) => (
<div
Expand Down

0 comments on commit ce1bb39

Please sign in to comment.