FIX: customer logos

Fixed HiDPI customer logos
This commit is contained in:
webfussel 2025-01-29 13:57:12 +01:00
parent 73aeba36e8
commit eb531e2783
32 changed files with 25 additions and 12 deletions

View file

@ -4,8 +4,8 @@
loading="lazy"
width="150"
height="150"
:srcset="[getImage('1x', true), getImage('2x', true), getImage('3x', true)].join(', ')"
:src="getImage('1x', false)"
:srcset="[userImage('1x', true), userImage('2x', true), userImage('3x', true)].join(', ')"
:src="userImage('1x', false)"
:alt="`Bild von ${name}`"
/>
<h3>{{name}}</h3>
@ -28,5 +28,5 @@ type Props = {
const { img } = defineProps<Props>()
const getImage = (size : '1x' | '2x' | '3x', set : boolean) => `/img/network/${img}@${size}.webp${set ? ` ${size}` : ''}`
const userImage = getImage('/img/network/', img)
</script>