Skip to content

Claude/fix hero image visibility ofl m4#53

Merged
amavashev merged 2 commits intomainfrom
claude/fix-hero-image-visibility-oflM4
Mar 16, 2026
Merged

Claude/fix hero image visibility ofl m4#53
amavashev merged 2 commits intomainfrom
claude/fix-hero-image-visibility-oflM4

Conversation

@amavashev
Copy link
Contributor

SVG: viewBox 620x500, transparent background (fill="none") — no white box in dark mode
CSS: Only overrides max-width/max-height on .image-src at each VitePress breakpoint:
Mobile: 192→280px
Tablet (640px+): 256→340px
Desktop (960px+): 320→420px
Removes .image-bg circle decoration
Clears .image-container background/box-shadow/border for dark mode
Sets brand color to teal #00C9A7
Also caught that :deep() doesn't work in plain CSS files — fixed to standard class selectors.

claude added 2 commits March 16, 2026 14:27
VitePress uses absolute positioning for .image-src inside a
fixed-dimension .image-container. Previous CSS broke this by
overriding container dimensions and removing positioning context.

Now works with VitePress's layout by only increasing the
max-width/max-height on .image-src at each breakpoint:
- mobile: 192→280px
- tablet: 256→340px
- desktop: 320→420px

https://claude.ai/code/session_01WcCDNp5tZVqpaNxancVdRc
:deep() is a Vue scoped style selector and has no effect in a plain
CSS file. Replaced with standard class selectors which will correctly
match the rendered .image-src element.

https://claude.ai/code/session_01WcCDNp5tZVqpaNxancVdRc
@amavashev amavashev merged commit fb18c74 into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants