Skip to content

Commit 29b8cd9

Browse files
capdiemCopilot
andauthored
πŸ› fix(NavItems): prevent image selection in navigation items (#774)
* πŸ› fix(NavItems): prevent image selection in navigation items * Update src/Masa.Stack.Components/Shared/Layouts/Components/NavItems.razor Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent c785b1a commit 29b8cd9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

β€Žsrc/Masa.Stack.Components/Shared/Layouts/Components/NavItems.razorβ€Ž

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
@if (subNav.HasChildren)
77
{
88
<div class="d-flex align-star @Class" style="position: relative">
9-
<img src="https://cdn.masastack.com/stack/images/component/nav-sub-before.png" width="18" height="48" alt="line" />
9+
<img src="https://cdn.masastack.com/stack/images/component/nav-sub-before.png" width="18" height="48" alt="line"
10+
style="user-select: none;"/>
1011
<MListGroup Group="@GenGroup(subNav.Children)"
1112
Class="full-width"
1213
ActiveClass="primary--text"
@@ -48,14 +49,16 @@
4849
{
4950
<div class="d-flex align-center @Class">
5051
<img src="https://cdn.masastack.com/stack/images/component/nav-before-first-sub.png" height="8"
51-
alt="first-sub-before" />
52+
alt="first-sub-before"
53+
style="user-select: none;"/>
5254
</div>
5355
}
5456

5557
<div class="d-flex align-center @Class">
56-
<img src="https://cdn.masastack.com/stack/images/component/nav-sub-before.png" width="18" height="48" alt="line" />
58+
<img src="https://cdn.masastack.com/stack/images/component/nav-sub-before.png" width="18" height="48" alt="line"
59+
style="user-select: none"/>
5760

58-
<SListItem Medium Class="mb-0 rounded-2"
61+
<SListItem Medium Class="mb-0 rounded-2"
5962
ActiveClass="primary"
6063
Href="@BuildHref(subNav.Url)"
6164
Exact="@subNav.Exact"

0 commit comments

Comments
Β (0)