Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Fix Content padding on smaller devices
Browse files Browse the repository at this point in the history
Closes #55
  • Loading branch information
onbjerg committed Sep 6, 2019
1 parent e58c941 commit adab01d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
6 changes: 3 additions & 3 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"now-build": "npm run build"
},
"dependencies": {
"@aragon/ui": "^1.0.0-alpha.19",
"@aragon/ui": "^1.0.0-alpha.23",
"date-fns": "^2.0.1",
"graphql-hooks": "^3.6.1",
"prop-types": "^15.7.2",
Expand Down
16 changes: 14 additions & 2 deletions website/src/components/Layout/Content.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import React from 'react'
import styled from 'styled-components'
import { useLayout } from '@aragon/ui'

export const Content = styled.div`
padding: 1em;
export const ContentContainer = styled.div`
padding: ${({ compact }) => compact ? 'none' : '1em'};
width: 100%;
`

export const Content = ({
children
}) => {
const { name: layout } = useLayout()

return <ContentContainer compact={layout === 'small'}>
{children}
</ContentContainer>
}
11 changes: 9 additions & 2 deletions website/src/pages/orgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,15 @@ export default () => {
]}
entries={data.organisations.nodes}
renderEntry={({ address, ens, createdAt }) => [
<IdentityBadge key='org-addr' entity={address} customLabel={ens} />,
<div key='org-created-at'>{format(new Date(createdAt), 'dd/MM/y')}</div>
<IdentityBadge
key='org-addr'
entity={address}
customLabel={ens}
popoverTitle={ens}
/>,
<div key='org-created-at'>
{format(new Date(createdAt), 'dd/MM/y')}
</div>
]}
renderEntryActions={({ address, ens }) => [
<Button
Expand Down

0 comments on commit adab01d

Please sign in to comment.