fix: reduce opacity for normal images in dark mode

This commit is contained in:
Stefan Imhoff
2026-01-29 14:05:33 +01:00
committed by Stefan Imhoff
parent 7ca011742c
commit 19ed076182
2 changed files with 2 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ const wrapperProps = href ? { href } : {};
{...wrapperProps}
>
<img
class:list={['rounded-2 object-cover dark:opacity-[0.87]']}
class:list={['rounded-2 object-cover']}
decoding={decoding}
loading={loading}
src={src}

View File

@@ -8,12 +8,6 @@ interface Props {
const { class: className, noMargin, src, ...props } = Astro.props;
---
<div
class:list={[
'block h-auto w-full rounded-2 mbe-10 mbs-0 dark:opacity-[0.87]',
{ 'mbe-0': noMargin },
className,
]}
>
<div class:list={['block h-auto w-full rounded-2 mbe-10 mbs-0', { 'mbe-0': noMargin }, className]}>
<img src={src} decoding="async" loading="lazy" {...props} />
</div>