-
Notifications
You must be signed in to change notification settings - Fork 425
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
preserveAspectRatio #3701
preserveAspectRatio #3701
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
WalkthroughThe recent updates enhance the chart components by introducing new properties for controlling chart visibility and scaling options. Notably, the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PortfolioPage
participant AssetsOverview
participant HistoricalChart
User->>PortfolioPage: Toggle chart visibility
PortfolioPage->>AssetsOverview: Update isChartMinimized state
AssetsOverview->>HistoricalChart: Render based on isChartMinimized
HistoricalChart-->>AssetsOverview: Display minimized or expanded chart
AssetsOverview-->>User: Show updated chart view
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f89adaf
to
b9a30c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
packages/web/components/complex/portfolio/assets-overview.tsx (1)
142-142
: Consider using optional chaining.The static analysis tool suggests using optional chaining to simplify code and handle potential undefined values safely.
- {wallet && wallet.isWalletConnected && wallet.address ? ( + {wallet?.isWalletConnected && wallet.address ? (- disabled={totalValue && totalValue.toDec().isZero()} + disabled={totalValue?.toDec().isZero()}Also applies to: 207-207
Tools
Biome
[error] 142-142: Change to an optional chain.
Unsafe fix: Change to an optional chain.
(lint/complexity/useOptionalChain)
b9a30c4
to
e99083b
Compare
What is the purpose of the change:
Preserve aspect ratio on chart svg
Linear Task
https://linear.app/osmosis/issue/FE-948/portfolio-update-chart-svg-to-span-full-width
Brief Changelog
Testing and Verifying