From d19ded377fd69f93eab88f5f5603a0f99a46a5f5 Mon Sep 17 00:00:00 2001 From: Firq <firelp42@gmail.com> Date: Mon, 7 Apr 2025 23:17:32 +0200 Subject: [PATCH] resolution fix --- .forgejo/workflows/unlighthouse.yml | 5 +++-- package-lock.json | 4 ++-- package.json | 2 +- src/layouts/baseSection.astro | 1 - src/layouts/blogSection.astro | 5 ++++- src/pages/fgo.astro | 11 +++++++++-- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/unlighthouse.yml b/.forgejo/workflows/unlighthouse.yml index a987c84..0aeae9c 100644 --- a/.forgejo/workflows/unlighthouse.yml +++ b/.forgejo/workflows/unlighthouse.yml @@ -24,12 +24,13 @@ jobs: uses: https://code.forgejo.org/actions/checkout@v3 - name: Check availability run: | - while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website/)" -ne 200 ]; + while [ "$(curl -o /dev/null -s -w '%{http_code}' http://website)" -ne 200 ]; do echo "Waiting..."; + curl -X GET http://website; sleep 5; done; - name: Run unlighthouse - run: unlighthouse-ci --site "http://website/" + run: unlighthouse-ci --site "http://website" - name: Replace URLs run: find ./unlighthouse-reports -type f | xargs sed -i "s|http://website|https://preview.firq.dev|g"; - name: Prepare artifacts diff --git a/package-lock.json b/package-lock.json index b2b070b..38853d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firq/fgosite", - "version": "0.2.0-pre.68", + "version": "0.2.0-pre.69", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@firq/fgosite", - "version": "0.2.0-pre.68", + "version": "0.2.0-pre.69", "dependencies": { "@astro-community/astro-embed-youtube": "^0.5.6", "@astrojs/check": "^0.9.4", diff --git a/package.json b/package.json index b9c6ab7..9c2ca6b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@firq/fgosite", "type": "module", - "version": "0.2.0-pre.68", + "version": "0.2.0-pre.69", "private": true, "scripts": { "dev": "astro dev", diff --git a/src/layouts/baseSection.astro b/src/layouts/baseSection.astro index bda0b7f..0c62971 100644 --- a/src/layouts/baseSection.astro +++ b/src/layouts/baseSection.astro @@ -29,7 +29,6 @@ const hidden = titleHidden || false ? "visually-hidden" : "" align-self: center; display: flex; flex-flow: row wrap; - padding: 1em; position: relative; } h1 { diff --git a/src/layouts/blogSection.astro b/src/layouts/blogSection.astro index ed559a5..b25340d 100644 --- a/src/layouts/blogSection.astro +++ b/src/layouts/blogSection.astro @@ -95,7 +95,7 @@ const line = displayLine ? "flex" : "none" align-items: stretch; align-content: center; justify-content: space-around; - padding: 1em; + padding: 1em 0px; color: var(--c-primary-text); font-size: 1em; position: relative; @@ -114,6 +114,9 @@ const line = displayLine ? "flex" : "none" margin-left: 3rem; font-size: 1.85rem; } + .wrapper { + padding: 1em; + } } @media (min-width: 1100px) { .wrapper { diff --git a/src/pages/fgo.astro b/src/pages/fgo.astro index 4ebc47f..974bacd 100644 --- a/src/pages/fgo.astro +++ b/src/pages/fgo.astro @@ -35,13 +35,20 @@ data.map((item) => { item.origin = "First 120 on NA" }) currentpage="fgo" descriptionOverride={description} > - <SmallTitle maintext="FGO Information" subtext={subtext} fadeout={true} /> + <SmallTitle maintext="FGO Infos" subtext={subtext} fadeout={true} /> <BaseSection title="Highlights"> {data.map((item) => <FavouriteCard {...item} />)} </BaseSection> + <div class="placeholder"></div> <BaseSection title="Infos" titleHidden={true}> {projects.map((item) => <ProjectCard {...item} />)} </BaseSection> </Layout> -<style></style> +<style> + .placeholder { + visibility: hidden; + width: 100%; + height: 1.5rem; + } +</style>