Fixed the blogs page for mobile

This commit is contained in:
2025-01-03 15:43:42 +02:00
parent 0aeaee4076
commit 5e6cf18108
2 changed files with 6 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ interface Props {
const { title, description, date, href, header } = Astro.props;
---
<TerminalBorder header={header} footer={formatDate(date)} extra="mb-[2vw]">
<TerminalBorder header={header} footer={formatDate(date)} extra="mb-[5vw] sm:mb-[2vw]">
<span class="cursor-pointer group block w-full">
{
href ? (

View File

@@ -14,14 +14,16 @@ const blogs = (await getCollection("blogs"))
}));
const repeatArray = (arr, times) => Array(times).fill(arr).flat();
const repeated = repeatArray(blogs, 10);
---
<Terminal path="blogs/">
<TerminalBorder header="Shell" extra="sm:mt-[0.625vw] sm:mb-[1.5625vw]">
<TerminalBorder
header="Shell"
extra="mb-[5vw] sm:mt-[0.625vw] sm:mb-[1.5625vw]"
>
<p>$ ls -lah -t --color=auto ~/blogs</p>
</TerminalBorder>
<div class="sm:max-h-[24vw] overflow-y-auto">
<div class="max-h-[80svh] sm:max-h-[24vw] overflow-y-auto">
{
repeated.map((blog) => (
<>