-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: Scrolling issues on deployment page #254
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ export default async function SystemDeploymentsPage({ | |
{deployments.length === 0 ? ( | ||
<DeploymentGettingStarted systemId={system.id} /> | ||
) : ( | ||
<div className="scrollbar-thin scrollbar-thumb-neutral-800 scrollbar-track-neutral-900 container mx-auto h-[calc(100vh-40px)] overflow-auto p-8"> | ||
<div className="scrollbar-thin scrollbar-thumb-neutral-800 scrollbar-track-neutral-900 container mx-auto h-[calc(100%-49px)] overflow-auto p-8"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Height calculation change needs to be consistent across similar components The codebase shows inconsistent usage of height calculations, with most components using viewport-based (
For consistent behavior across the application, similar components should follow the same height calculation approach. Consider updating related system components to use percentage-based calculations if this new approach proves more reliable. 🔗 Analysis chainVerify scrollbar behavior across different viewport sizes The change from viewport-based ( 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for other viewport-dependent height calculations that might need similar updates
rg "h-\[calc\(100vh" --type tsx
Length of output: 61 Script: #!/bin/bash
# Check for other viewport-dependent height calculations that might need similar updates
# Using ripgrep without file type restriction since tsx extension might not be recognized
rg "h-\[calc\(100vh"
# Also check for percentage-based height calculations for comparison
rg "h-\[calc\(100%"
Length of output: 4697 |
||
<DeploymentTable | ||
deployments={deployments} | ||
environments={environments} | ||
|
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.
🛠️ Refactor suggestion
Consider extracting width calculations into constants
The max-width calculations use magic numbers that make maintenance difficult. Consider extracting these values into named constants for better maintainability:
Also, consider adding a comment explaining how these width calculations were derived.
📝 Committable suggestion