mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
✨ Add width and height attributes to SVG images for better layout control
This commit is contained in:
@@ -77,6 +77,8 @@
|
|||||||
alt={svgInfo.title}
|
alt={svgInfo.title}
|
||||||
title={svgInfo.title}
|
title={svgInfo.title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="140"
|
||||||
|
height="40"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
class={cn("block dark:hidden", globalImageStyles)}
|
class={cn("block dark:hidden", globalImageStyles)}
|
||||||
@@ -84,6 +86,8 @@
|
|||||||
alt={svgInfo.title}
|
alt={svgInfo.title}
|
||||||
title={svgInfo.title}
|
title={svgInfo.title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="140"
|
||||||
|
height="40"
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
@@ -92,6 +96,8 @@
|
|||||||
alt={svgInfo.title}
|
alt={svgInfo.title}
|
||||||
title={svgInfo.title}
|
title={svgInfo.title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="140"
|
||||||
|
height="40"
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
class={cn("block dark:hidden", globalImageStyles)}
|
class={cn("block dark:hidden", globalImageStyles)}
|
||||||
@@ -99,6 +105,8 @@
|
|||||||
alt={svgInfo.title}
|
alt={svgInfo.title}
|
||||||
title={svgInfo.title}
|
title={svgInfo.title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="140"
|
||||||
|
height="40"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
|
|||||||
Reference in New Issue
Block a user