fix: correct shine.svg path and revert balloon mask to /color/ routes
Balloon mask and color images correctly live at /color/images/ (served by main site via nginx). Only the shine image path was wrong — it's at /color/shine.svg, not /color/images/shine.svg. That missing file was the actual cause of Safari showing ? placeholders. Previous commit incorrectly moved everything to /color-picker/ which broke the CSS mask-image. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9d02417059
commit
0d95cf93b3
@ -135,11 +135,11 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: transform 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
-webkit-mask-image: url('/color-picker/images/balloon-mask.svg');
|
-webkit-mask-image: url('/color/images/balloon-mask.svg');
|
||||||
-webkit-mask-size: contain;
|
-webkit-mask-size: contain;
|
||||||
-webkit-mask-repeat: no-repeat;
|
-webkit-mask-repeat: no-repeat;
|
||||||
-webkit-mask-position: center;
|
-webkit-mask-position: center;
|
||||||
mask-image: url('/color-picker/images/balloon-mask.svg');
|
mask-image: url('/color/images/balloon-mask.svg');
|
||||||
mask-size: contain;
|
mask-size: contain;
|
||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-position: center;
|
mask-position: center;
|
||||||
|
|||||||
@ -142,7 +142,7 @@ export default function AdminColorFilter({ disabledColors, onSave, onClose }: Pr
|
|||||||
<div className="swatch-container">
|
<div className="swatch-container">
|
||||||
{family.colors.map((color) => {
|
{family.colors.map((color) => {
|
||||||
const isDisabled = disabled.has(color.name)
|
const isDisabled = disabled.has(color.name)
|
||||||
const imageSrc = color.image ? `/color-picker/${color.image}` : null
|
const imageSrc = color.image ? `/color/${color.image}` : null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@ -165,7 +165,7 @@ export default function AdminColorFilter({ disabledColors, onSave, onClose }: Pr
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img className="color-shine" src="/color-picker/images/shine.svg" alt="" aria-hidden="true" />
|
<img className="color-shine" src="/color/shine.svg" alt="" aria-hidden="true" />
|
||||||
</div>
|
</div>
|
||||||
<span style={{
|
<span style={{
|
||||||
fontSize: '0.6rem',
|
fontSize: '0.6rem',
|
||||||
|
|||||||
@ -457,7 +457,7 @@ export default function ColorPicker({ product, maxColors, onClose, editingEntry
|
|||||||
{family.colors.map((color) => {
|
{family.colors.map((color) => {
|
||||||
const isChosen = selected.has(color.name)
|
const isChosen = selected.has(color.name)
|
||||||
const disabled = atCap && !isChosen
|
const disabled = atCap && !isChosen
|
||||||
const imageSrc = color.image ? `/color-picker/${color.image}` : null
|
const imageSrc = color.image ? `/color/${color.image}` : null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@ -492,7 +492,7 @@ export default function ColorPicker({ product, maxColors, onClose, editingEntry
|
|||||||
)}
|
)}
|
||||||
<img
|
<img
|
||||||
className="color-shine"
|
className="color-shine"
|
||||||
src="/color-picker/images/shine.svg"
|
src="/color/shine.svg"
|
||||||
alt=""
|
alt=""
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user