mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
fix: reduce opacity for normal images in dark mode
This commit is contained in:
committed by
Stefan Imhoff
parent
7ca011742c
commit
19ed076182
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user