fixed doc thumbnail align

This commit is contained in:
2024-03-30 15:05:51 +01:00
parent 372b5acb02
commit e5020b267f
2 changed files with 15 additions and 14 deletions

View File

@@ -18,13 +18,6 @@ const docs = unsortedDocs.sort(
docs.map((doc) => (
<div
class="second-content"
style={
doc.frontmatter.has_thumbnail
? 'background-image: url("/img/docs/thumbnails/' +
doc.frontmatter.repo +
'.webp")'
: ""
}
>
<div style="text-align: left;" />
<a href={doc.url}>
@@ -39,7 +32,9 @@ const docs = unsortedDocs.sort(
<li>{feature}</li>
))}
</ul>
<img class="doc_thumbnail" style={doc.frontmatter.has_thumbnail ? "" : "display:none;"} src={"/img/docs/thumbnails/" + doc.frontmatter.repo + ".webp"} />
</div>
))
}
</div>

View File

@@ -51,13 +51,19 @@ main {
border-radius: 25px;
border: 1px solid lighten($second-content-clr, 12%);
min-width: 30vw;
padding: 2vh;
padding-bottom: 32%;
margin-inline: 10vw;
margin-bottom: 11vh;
background-repeat: no-repeat;
background-position: center bottom;
background-size: 100% auto;
p, ul,h1,h2,h3{
padding-inline: 2vw;
}
}
.doc_thumbnail{
position: relative;
bottom: 0;
left: 0;
margin: -2vh;
width: 150%;
padding-top: 2vh;
border-radius: 0 0 25px 25px;
}
td {