Skip to content

Commit

Permalink
⬆️ Max Height Market
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlee-dev committed Sep 25, 2019
1 parent 5936ae3 commit f352062
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const App = ({ handleInitializeApplication, planets }) => {
return (
<Box fill>
<ViewSpeeddial />
<Box pad={{ left: '100px', top: '25px', right: '25px', bottom: '25px' }}>
<Box
pad={{ left: '100px', top: '25px', right: '25px', bottom: '25px' }}
style={{ maxHeight: '100vh', overflow: 'auto' }}
>
<View />
</Box>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ItemCard = ({ item }) => {
const currentItem = itemList.find(({ name }) => name === item)
const Icon = currentItem.icon
return (
<Card>
<Card style={{ position: 'sticky', top: '0', zIndex: '1' }}>
<CardContent>
<Box
alignItems="center"
Expand Down
4 changes: 2 additions & 2 deletions src/components/MarketTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const MarketTable = ({ data, item }) => {
}

return (
<Paper style={{ width: '100%' }}>
<Paper style={{ overflow: 'auto', width: '100%' }}>
<ItemCard item={item} />
<Table>
<Table stickyHeader>
<TableHead>
<TableRow>
<TableCell>Name</TableCell>
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ body {
.node-container:hover {
cursor: pointer;
}

.MuiTableCell-stickyHeader {
top: 104px !important;
}

0 comments on commit f352062

Please sign in to comment.