fix: progress bar not rendering — replace float:left with position:absolute
float:left on .progress-segment was ignored inside the overflow:hidden position:relative .progress-bar container, so the coloured fill never appeared. Absolute positioning from top:0 left:0 with the JS-assigned width renders correctly.
This commit is contained in:
+3
-1
@@ -519,13 +519,15 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.progress-segment {
|
.progress-segment {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
transition: width 0.3s ease;
|
transition: width 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-segment.downloaded {
|
.progress-segment.downloaded {
|
||||||
background: linear-gradient(90deg, var(--progress-fill-start) 0%, var(--progress-fill-end) 100%);
|
background: linear-gradient(90deg, var(--progress-fill-start) 0%, var(--progress-fill-end) 100%);
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-text {
|
.progress-text {
|
||||||
|
|||||||
Reference in New Issue
Block a user