Skip to content

Commit

Permalink
Fix missing change from #2529
Browse files Browse the repository at this point in the history
A small, hard to notice change was present in my suggestion that wasn't picked up.
  • Loading branch information
ewdurbin authored Sep 12, 2024
1 parent ce1c391 commit b23746d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sponsors/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_benefit_split(self, obj: SponsorshipPackage) -> str:
for i, (name, pct) in enumerate(split):
pct_str = f"{pct:.0f}%"
widths.append(pct_str)
spans.append(f"<span title='{name}' style='background-color:var(--{colors[i]})'>{pct_str}</span>")
spans.append(f"<span title='{name}' style='background-color:{colors[i]}'>{pct_str}</span>")
# define a style that will show our span elements like a single horizontal stacked bar chart
style = f'color:#fff;text-align:center;cursor:pointer;display:grid;grid-template-columns:{" ".join(widths)}'
# wrap it all up and put a bow on it
Expand Down

0 comments on commit b23746d

Please sign in to comment.