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:
parent
57f37723fa
commit
c3537208a3
3 changed files with 24 additions and 10 deletions
|
@ -119,6 +119,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.images {
|
.images {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
|
|
|
@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue