Fix Photos CI formatting and restore the portfolio link
All checks were successful
Check & deploy / validate (pull_request) Successful in 25m6s
Check & deploy / deploy (pull_request) Has been skipped

This commit is contained in:
Andras Schmelczer 2026-11-10 20:23:32 +00:00
commit f2797730f7
4 changed files with 29 additions and 11 deletions

View file

@ -7,12 +7,10 @@ on:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
runs-on:
${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
'renovate/')) && 'renovate' || 'docker' }}
# Superseded validation runs can be cancelled freely.
concurrency:
@ -48,13 +46,16 @@ jobs:
- name: End-to-end smoke test
run: npm run test:e2e
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
if:
${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) }}
deploy:
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
runs-on:
${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
'renovate/')) && 'renovate' || 'docker' }}
needs: validate
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
if:
${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) && (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
# Never cancel an in-flight deploy: rsync --delete must finish or the live
# site can be left half-deleted. Newer deploys queue behind this one.

View file

@ -7,7 +7,7 @@
"scripts": {
"dev": "node scripts/generate-assets.mjs && vite --host 0.0.0.0",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix && prettier --write .",
"lint:check": "node scripts/generate-assets.mjs && node scripts/check-image-metadata.mjs && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && prettier --check .",
"lint:check": "prettier --check . && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && node scripts/check-image-metadata.mjs && node scripts/generate-assets.mjs",
"test": "vitest run",
"test:e2e": "playwright test",
"build": "node scripts/generate-assets.mjs && vite build"

View file

@ -36,6 +36,7 @@
</head>
<body>
<header class="site-header">
<a class="portfolio-link" href="https://schmelczer.dev/">Portfolio</a>
<button
id="slideshow-toggle"
class="slideshow-toggle"

View file

@ -76,12 +76,21 @@ img {
white-space: nowrap;
}
.portfolio-link {
position: absolute;
inset-block-end: var(--space-s);
color: inherit;
font-size: 0.875rem;
}
.gallery {
min-width: 0;
min-height: 100dvh;
display: grid;
grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax(7rem,
14vmin);
grid-template-columns: minmax(5rem, 10vmin) minmax(0, 1fr) minmax(
7rem,
14vmin
);
position: relative;
overflow: hidden;
}
@ -237,6 +246,13 @@ img {
padding: var(--space-s);
}
.portfolio-link {
position: static;
grid-column: 1;
grid-row: 2;
justify-self: start;
}
.slideshow-toggle {
position: static;
grid-column: 2;