8000 Fix progress bar width calculation in FounderProjectItem component by miladsoft · Pull Request #431 · block-core/angor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix progress bar width calculation in FounderProjectItem component #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025

Conversation

miladsoft
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 15, 2025 16:50
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request addresses an issue with the progress bar width calculation in the FounderProjectItem component. The changes ensure the width is computed correctly and rendered as a string value with a percentage sign.

  • Adjusted the Razor code to concatenate the percentage sign for the progress bar width.
  • Introduced an outer progress container that may require review.

Comment on lines 87 to 92
<div class="progress rounded-pill mb-3" style="height: 16px; background-color: var(--btn-border);">
<div class="progress-bar-striped bg-success rounded-pill text-center" role="progressbar"
style="width: @projectStats.FundingProgressPercent%;"
<div class="progress rounded-pill mb-3" style="height: 16px; background-color: var(--btn-border);">
<div class="progress-bar-striped bg-success rounded-pill text-center" role="progressbar"
style="width: @(projectStats.FundingProgressPercent + "%");">
</div>
</div>
Copy link
Preview
Copilot AI Jun 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Review if the additional outer progress container is intentional as it duplicates the inner container's styling and structure, possibly adding unnecessary complexity.

Copilot uses AI. Check for mistakes.

@dangershony dangershony merged commit a5c699e into main Jun 15, 2025
3 checks passed
@dangershony dangershony deleted the fix-html-bug branch June 15, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0