From b73bda3a78916cf1c0c59d00887f0079efcfa810 Mon Sep 17 00:00:00 2001 From: Firq Date: Thu, 21 Dec 2023 11:39:45 +0100 Subject: [PATCH] mobile fix, reworked unlighthouse --- .forgejo/workflows/build_preview.yml | 37 ++++++++++++++-------------- .forgejo/workflows/unlighthouse.yml | 12 ++------- src/components/navbarEntry.astro | 2 +- 3 files changed, 22 insertions(+), 29 deletions(-) diff --git a/.forgejo/workflows/build_preview.yml b/.forgejo/workflows/build_preview.yml index e201be3..c0bdca4 100644 --- a/.forgejo/workflows/build_preview.yml +++ b/.forgejo/workflows/build_preview.yml @@ -48,21 +48,22 @@ jobs: token: ${{ secrets.FORGEJO_TOKEN }} tag: ${{ github.ref_name }} - unlighthouse: - needs: [publish] - if: success() - runs-on: docker - container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest - services: - website: - image: forgejo.neshweb.net/firq/firq-dev-website:preview - steps: - - name: Install Dependencies - run: npm install @unlighthouse/cli puppeteer - - name: Run unlighthouse - run: node_modules/.bin/unlighthouse-ci - - name: Upload reports - uses: actions/upload-artifact@v3 - with: - name: unlighthouse-reports - path: unlighthouse-reports/ + # doesn't work atm + # unlighthouse: + # needs: [publish] + # if: success() + # runs-on: docker + # container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest + # services: + # website: + # image: forgejo.neshweb.net/firq/firq-dev-website:preview + # steps: + # - name: Install Dependencies + # run: npm install @unlighthouse/cli puppeteer + # - name: Run unlighthouse + # run: node_modules/.bin/unlighthouse-ci + # - name: Upload reports + # uses: actions/upload-artifact@v3 + # with: + # name: unlighthouse-reports + # path: unlighthouse-reports/ diff --git a/.forgejo/workflows/unlighthouse.yml b/.forgejo/workflows/unlighthouse.yml index b43ae87..f3575b1 100644 --- a/.forgejo/workflows/unlighthouse.yml +++ b/.forgejo/workflows/unlighthouse.yml @@ -5,21 +5,13 @@ on: jobs: unlighthouse: - runs-on: dind + runs-on: docker container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest - services: - firqdevwebsite: - image: forgejo.neshweb.net/firq/firq-dev-website:preview - options: >- - --health-cmd "curl --fail http://localhost:8081 || exit 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 steps: - name: Install Dependencies run: npm install @unlighthouse/cli puppeteer - name: Run unlighthouse - run: node_modules/.bin/unlighthouse-ci --site "http://firqdevwebsite:8081" + run: node_modules/.bin/unlighthouse-ci --site "https://preview.firq.dev/" - name: Upload reports uses: actions/upload-artifact@v3 with: diff --git a/src/components/navbarEntry.astro b/src/components/navbarEntry.astro index 334fefd..71c8165 100644 --- a/src/components/navbarEntry.astro +++ b/src/components/navbarEntry.astro @@ -46,7 +46,7 @@ const fulllink = `/${slug}` color: white; text-decoration: none; justify-content: center; - align-items: flex-end; + align-items: center; font-size: 1.4em; height: 100%; font-weight: bold;