Skip to content

Commit f02b7be

Browse files
committed
[RZA-250003]: fix few svg icons
1 parent 23b67fb commit f02b7be

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/assets/icons/home.svg

Lines changed: 9 additions & 3 deletions
Loading

src/assets/icons/record.svg

Lines changed: 1 addition & 1 deletion
Loading

src/layouts/Navigation.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ const { pages } = Astro.props;
1111
const currentPath = Astro.url.pathname;
1212
---
1313

14+
<style>
15+
.iconx {
16+
width: 32px;
17+
height: 32px;
18+
}
19+
</style>
20+
1421
<nav class="nav">
1522
<ul class="nav--list">
1623
{
@@ -19,7 +26,7 @@ const currentPath = Astro.url.pathname;
1926
.map((p) => (
2027
<li class={`nav--list__item ${currentPath === p.path ? "active" : ""}`}>
2128
<a href={p.path}>
22-
<span class="icon">{p.icon && <p.icon width={24} height={24} />}</span>
29+
<span class="iconx">{p.icon && <p.icon />}</span>
2330
<span class="text">{p.name}</span>
2431
</a>
2532
</li>

0 commit comments

Comments
 (0)