Skip to content

Commit 696bbf2

Browse files
committed
fix icon attributes
1 parent 20b573d commit 696bbf2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/ruby_ui/sidebar/sidebar_trigger.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def view_template(&)
1313

1414
def default_attrs
1515
{
16-
class: "h-7 w-7",
16+
class: "h-7 w-7 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1717
data: {
1818
sidebar: "trigger"
1919
}
@@ -23,17 +23,17 @@ def default_attrs
2323
def panel_left_icon
2424
svg(
2525
xmlns: "http://www.w3.org/2000/svg",
26-
width: 24,
27-
height: 24,
28-
viewBox: "0 0 24 24",
29-
fill: "none",
30-
stroke: "currentColor",
31-
strokeWidth: 2,
32-
strokeLinecap: "round",
33-
strokeLinejoin: "round",
26+
width: "24",
27+
height: "24",
28+
viewBox: "0 0 24 24",
29+
fill: "none",
30+
stroke: "currentColor",
31+
stroke_width: "2",
32+
stroke_linecap: "round",
33+
stroke_linejoin: "round",
3434
class: "lucide lucide-panel-left"
3535
) do |s|
36-
s.rect(width: 18, height: 18, x: 3, y: 3, rx: 2)
36+
s.rect(width: "18", height: "18", x: "3", y: "3", rx: "2")
3737
s.path(d: "M9 3v18")
3838
end
3939
end

0 commit comments

Comments
 (0)