From 951eb2ce25cb7d3ee3f629569e1c792c8a2cff34 Mon Sep 17 00:00:00 2001 From: Etienne Delvarre Date: Fri, 29 May 2026 11:51:54 +0200 Subject: [PATCH] Fix hero image zoom on theme switch Use background-image instead of background shorthand to prevent background-size: cover from being reset when toggling dark/light. Co-Authored-By: Claude Opus 4.6 --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 99d54b4..c923787 100644 --- a/public/index.html +++ b/public/index.html @@ -232,8 +232,8 @@ window.dispatchEvent(new Event('tiptap-loaded')); .v-card.full { grid-column: 1 / -1; } .v-card h3 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; } - .hero-banner { grid-column: 1 / -1; border-radius: 12px; height: 400px; background: linear-gradient(135deg, #d4a574 0%, #c4956a 30%, #a07850 60%, #7a5c40 100%); position: relative; overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; } - .dark .hero-banner { background: linear-gradient(135deg, #5a4030 0%, #4a3528 30%, #3a2a20 60%, #2a1e18 100%); } + .hero-banner { grid-column: 1 / -1; border-radius: 12px; height: 400px; background-image: linear-gradient(135deg, #d4a574 0%, #c4956a 30%, #a07850 60%, #7a5c40 100%); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; display: flex; align-items: flex-end; } + .dark .hero-banner { background-image: linear-gradient(135deg, #5a4030 0%, #4a3528 30%, #3a2a20 60%, #2a1e18 100%); } .hero-banner.has-image { background-color: #1a1614; cursor: grab; } .hero-banner.has-image.dragging { cursor: grabbing; } .hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(44,24,16,0.55)); pointer-events: none; }