👌 hide header on assets list

This commit is contained in:
ghalestrilo 2020-08-13 09:54:10 -03:00
parent 69acd3af67
commit 03f28321be
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import Loader from '../App/components/loader';
const EXAMPLE_USERNAME = 'p5'; const EXAMPLE_USERNAME = 'p5';
// @ghalestrilo 08/13/2020: I'm sorry
const ContentWrapper = styled(Content)` const ContentWrapper = styled(Content)`
table { table {
table-layout: fixed; table-layout: fixed;
@ -85,6 +86,7 @@ const ContentWrapper = styled(Content)`
thead tr { thead tr {
grid-template-columns: repeat(${props => props.fieldcount}, 1fr) 0fr; grid-template-columns: repeat(${props => props.fieldcount}, 1fr) 0fr;
${props => props.noheader && 'display: none;'}
} }
tbody tr { tbody tr {
@ -187,7 +189,7 @@ const MobileDashboard = ({ params, location }) => {
</Header> </Header>
<ContentWrapper slimheader fieldcount={panel === Tabs[1] ? 4 : 3}> <ContentWrapper slimheader fieldcount={panel === Tabs[1] ? 4 : 3} noheader={panel === Tabs[2]}>
<Subheader> <Subheader>
{panel === Tabs[0] && <SketchSearchbar />} {panel === Tabs[0] && <SketchSearchbar />}
{panel === Tabs[1] && <CollectionSearchbar />} {panel === Tabs[1] && <CollectionSearchbar />}