Make tags container flex
This commit is contained in:
@@ -3,7 +3,7 @@ const { tags, all } = Astro.props;
|
|||||||
---
|
---
|
||||||
|
|
||||||
{all && <h3>View posts by tag</h3>}
|
{all && <h3>View posts by tag</h3>}
|
||||||
<div>
|
<div class="tags">
|
||||||
{
|
{
|
||||||
tags &&
|
tags &&
|
||||||
tags.map((tag) => (
|
tags.map((tag) => (
|
||||||
|
|||||||
@@ -146,6 +146,11 @@ ul.tags-list {
|
|||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
.tag {
|
.tag {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|||||||
Reference in New Issue
Block a user