-
Notifications
You must be signed in to change notification settings - Fork 205
fix: column width for sessions and activity table for smaller devices #2745
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
base: main
Are you sure you want to change the base?
Conversation
Console (appwrite/console)Project ID: Tip Every Git commit and branch gets its own deployment URL automatically |
WalkthroughTwo session management pages have their table column definitions updated to use responsive min-width objects instead of fixed pixel widths for the client, location, and ip columns. The action column width remains unchanged at 100. No logic or control flow modifications are present. Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| const columns: PinkColumn[] = [ | ||
| { id: 'user', ...(insideSideSheet ? { width: 140 } : {}) }, | ||
| { id: 'event', ...(insideSideSheet ? { width: 125 } : {}) }, | ||
| { id: 'location', ...(insideSideSheet ? { width: 100 } : {}) }, | ||
| { id: 'ip', ...(insideSideSheet ? { width: { min: 150 } } : {}) }, | ||
| { id: 'date', ...(insideSideSheet ? { width: { min: 200 } } : {}) } | ||
| { | ||
| id: 'user', | ||
| ...(insideSideSheet ? { width: 140 } : { width: { min: 100 } }) | ||
| }, | ||
| { | ||
| id: 'event', | ||
| ...(insideSideSheet ? { width: 125 } : { width: { min: 160 } }) | ||
| }, | ||
| { | ||
| id: 'location', | ||
| ...(insideSideSheet ? { width: 100 } : { width: { min: 120 } }) | ||
| }, | ||
| { | ||
| id: 'ip', | ||
| ...(insideSideSheet ? { width: { min: 150 } } : { width: { min: 250 } }) | ||
| }, | ||
| { | ||
| id: 'date', | ||
| ...(insideSideSheet ? { width: { min: 200 } } : { width: { min: 180 } }) | ||
| } | ||
| ]; |
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.
lets make a method to return values based on the if/else check.

What does this PR do?
Before
After
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.