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}
|
||||
title={svgInfo.title}
|
||||
loading="lazy"
|
||||
width="140"
|
||||
height="40"
|
||||
/>
|
||||
<img
|
||||
class={cn("block dark:hidden", globalImageStyles)}
|
||||
@@ -84,6 +86,8 @@
|
||||
alt={svgInfo.title}
|
||||
title={svgInfo.title}
|
||||
loading="lazy"
|
||||
width="140"
|
||||
height="40"
|
||||
/>
|
||||
{:else}
|
||||
<img
|
||||
@@ -92,6 +96,8 @@
|
||||
alt={svgInfo.title}
|
||||
title={svgInfo.title}
|
||||
loading="lazy"
|
||||
width="140"
|
||||
height="40"
|
||||
/>
|
||||
<img
|
||||
class={cn("block dark:hidden", globalImageStyles)}
|
||||
@@ -99,6 +105,8 @@
|
||||
alt={svgInfo.title}
|
||||
title={svgInfo.title}
|
||||
loading="lazy"
|
||||
width="140"
|
||||
height="40"
|
||||
/>
|
||||
{/if}
|
||||
<!-- Title -->
|
||||
|
||||
Reference in New Issue
Block a user