Skip to content

Commit

Permalink
fix progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
o-200 committed Dec 18, 2024
1 parent ec12755 commit 33b1178
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/podcasts/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
data: { upload_target: "input",
action: "change->upload#uploadFile" }
%>
<div data-upload-target="progress" style="width: 100%; background-color: #f3f3f3; border: 1px solid #ccc; height: 20px; position: relative;">
<div id="progress-bar" style="width: 0%; height: 100%; background-color: #4caf50; position: absolute; transition: width 0.2s;"></div>

<div class="progress" data-upload-target="progress">
<div class="progress-bar bg-success" id="progress-bar" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>

Expand All @@ -28,8 +29,8 @@
data: { upload_target: "input",
action: "change->upload#uploadFile" }
%>
<div data-upload-target="progress" style="width: 100%; background-color: #f3f3f3; border: 1px solid #ccc; height: 20px; position: relative;">
<div id="progress-bar" style="width: 0%; height: 100%; background-color: #4caf50; position: absolute; transition: width 0.2s;"></div>
<div class="progress" data-upload-target="progress">
<div class="progress-bar bg-success" id="progress-bar" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>

Expand Down

0 comments on commit 33b1178

Please sign in to comment.