1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed margins on lab

This commit is contained in:
Fedor Katurov 2022-04-08 18:25:35 +07:00
parent 57f37723fa
commit c3537208a3
3 changed files with 24 additions and 10 deletions

View file

@ -119,6 +119,8 @@
} }
.images { .images {
cursor: pointer;
img { img {
max-height: 400px; max-height: 400px;
border-radius: $radius; border-radius: $radius;

View file

@ -56,16 +56,18 @@ const LabGrid: FC<IProps> = () => {
return ( return (
<InfiniteScroll hasMore={hasMore} loadMore={loadMore}> <InfiniteScroll hasMore={hasMore} loadMore={loadMore}>
<Columns> <div className={styles.wrap}>
{nodes.map(node => ( <Columns>
<LabNode {nodes.map(node => (
node={node.node} <LabNode
key={node.node.id} node={node.node}
lastSeen={node.last_seen} key={node.node.id}
commentCount={node.comment_count} lastSeen={node.last_seen}
/> commentCount={node.comment_count}
))} />
</Columns> ))}
</Columns>
</div>
</InfiniteScroll> </InfiniteScroll>
); );
}; };

View file

@ -0,0 +1,10 @@
@import "src/styles/variables";
.wrap {
margin-top: -$gap * 1.5;
margin-left: -$gap * 0.5;
@include tablet {
margin: -$gap $gap * 0.5 0 0;
}
}