-
Notifications
You must be signed in to change notification settings - Fork 7
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: fix columns width on long rowset #1384
fix: fix columns width on long rowset #1384
Conversation
Had a discussion with @adameat to analyze first 100 rows in order to calculate predicted width |
4a123ee
to
81874d6
Compare
columnType?: string; | ||
}) => { | ||
let maxColumnContentLength = name.length; | ||
const headerPadding = columnType === 'number' ? 40 : 20; |
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.
What is headerPadding
? Why it's different for numbers and other types?
} | ||
} | ||
|
||
return Math.min(maxColumnContentLength * 10 + HEADER_PADDING, MAX_COLUMN_WIDTH); |
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.
it seems we may skip this check, cause it's already done: https://github.com/ydb-platform/ydb-embedded-ui/pull/1384/files#diff-372ca73fb142649c09d5b178debd37c1c6507e47eb54bf23cbf447d7f4904e1bR14
Closes #1340
Closes #1386
Closes #1387
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Bundle Size: ✅
Current: 79.13 MB | Main: 79.13 MB
Diff: +0.00 MB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information