Skip to content

Commit

Permalink
fix: "Network Navigator" button overflowing on small screens
Browse files Browse the repository at this point in the history
react-snap did not play nice with the responsive layout, so it
is disabled for now.
  • Loading branch information
Anton Eriksson committed Mar 26, 2020
1 parent 6f239d0 commit 207a9e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"postbuild": "react-snap",
"deploy": "scp -r build/* icelab-mapequation:/var/www/infomap"
},
"eslintConfig": {
Expand Down
8 changes: 6 additions & 2 deletions src/components/Infomap/Infomap.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,12 @@ export default observer(class InfomapOnline extends React.Component {
rel="noopener noreferrer"
href={`//www.mapequation.org/navigator?infomap=${network.name}.ftree`}
disabled={!output.ftree || running}
content="Open in Network Navigator"
/>
>
<Responsive minWidth={1200} as={React.Fragment}>Open in Network Navigator</Responsive>
<Responsive maxWidth={1199} minWidth={992} as={React.Fragment}>Open in Navigator</Responsive>
<Responsive maxWidth={991} minWidth={768} as={React.Fragment}>Navigator&#8230;</Responsive>
<Responsive maxWidth={767} as={React.Fragment}>Open in Network Navigator</Responsive>
</Button>
<DownloadMenu disabled={running}/>
</Button.Group>

Expand Down

0 comments on commit 207a9e7

Please sign in to comment.