Skip to content

fix(analytics): correct bar style attribute binding#1022

Merged
jaberjaber23 merged 1 commit intoRightNow-AI:mainfrom
lc-soft:fix/bar-width-style
Apr 10, 2026
Merged

fix(analytics): correct bar style attribute binding#1022
jaberjaber23 merged 1 commit intoRightNow-AI:mainfrom
lc-soft:fix/bar-width-style

Conversation

@lc-soft
Copy link
Copy Markdown
Contributor

@lc-soft lc-soft commented Apr 9, 2026

Summary

Fixed an issue in the analysis page where :style binding with a string value would overwrite the initial style attribute instead of merging with it. By switching to an object-based binding (e.g., :style="{ width: barWidth(m) }" ), the styles are now correctly applied and merged as expected.

Changes

Before:

screenshot-20260409-191624

After:

screenshot-20260409-191059

Testing

  • cargo clippy --workspace --all-targets -- -D warnings passes
  • cargo test --workspace passes
  • Live integration tested (if applicable)

Security

  • No new unsafe code
  • No secrets or API keys in diff
  • User input validated at boundaries

Copy link
Copy Markdown
Member

@jaberjaber23 jaberjaber23 left a comment

Choose a reason for hiding this comment

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

LGTM. Object syntax is cleaner and avoids string concatenation edge cases.

@jaberjaber23 jaberjaber23 merged commit 747314b into RightNow-AI:main Apr 10, 2026
9 of 11 checks passed
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