Skip to content

Commit 44909c6

Browse files
Fix progressBar component not resizing to fit parent (#180)
1 parent fbf706a commit 44909c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Lumi/Components/Progress.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ progressBar :: ProgressProps -> JSX
3131
progressBar = makeProgressComponent (createComponent "ProgressBar") \{ total, completed } ->
3232
RS.svg
3333
{ xmlns: "http://www.w3.org/2000/svg"
34+
, viewBox: "0 0 120 6"
35+
, preserveAspectRatio: "none"
3436
, height: "6"
35-
, width: "120"
37+
, width: "100%"
3638
, children:
3739
[ backgroundPath
3840
{ fill

0 commit comments

Comments
 (0)