-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: remove gap between tabs and list #37242
Conversation
WalkthroughThe changes in this pull request focus on the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11684792007. |
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 and nitpick comments (1)
app/client/src/pages/Editor/IDE/EditorTabs/List.tsx (1)
11-13
: Consider using CSS custom properties for consistency.Since this is a UI spacing value that might need adjustment across different components, consider using a CSS custom property.
- top: 32px; - padding-top: 4px; + top: var(--ads-list-top-spacing, 32px); + padding-top: var(--ads-list-padding-top, 4px);
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
app/client/src/pages/Editor/IDE/EditorTabs/List.tsx
(1 hunks)
🔇 Additional comments (1)
app/client/src/pages/Editor/IDE/EditorTabs/List.tsx (1)
11-13
: Verify the gap fix implementation.
The change from Tailwind's top-[36px]
to top: 32px
with padding-top: 4px
maintains the same total spacing but might provide better control over the gap. However, we should verify this fixes the 1px gap issue completely.
Let's check if there are similar gap issues elsewhere:
✅ Verification successful
Let me search for similar toolbar/list gap implementations to verify this change.
Gap fix implementation looks correct
The change from Tailwind's top-[36px]
to top: 32px
with padding-top: 4px
maintains the same total spacing (36px) while providing better control over the gap. The implementation is consistent within the file and there are no other similar patterns that need adjustment.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for similar toolbar/list gap implementations
rg -l "top-\[\d+px\]" --type ts --type tsx | xargs rg "toolbar|list" -l
Length of output: 65093
Script:
#!/bin/bash
# Search for similar toolbar/list gap implementations in the specific file and related components
rg -A 3 -B 3 "top-\[\d+px\]|top:\s*\d+px" "app/client/src/pages/Editor/IDE/EditorTabs/List.tsx" "app/client/src/pages/Editor/IDE/EditorTabs/"
Length of output: 1366
Deploy-Preview-URL: https://ce-37242.dp.appsmith.com |
## Description Remove a small gap that revealed a slice of action bar. Fixes appsmithorg#37220 ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/11688613194> > Commit: 87b7ed8 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11688613194&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Tue, 05 Nov 2024 17:13:44 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated the positioning and padding of the List component for improved layout. - Adjusted the styling of the ListContainer for better visual alignment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Remove a small gap that revealed a slice of action bar.
Fixes #37220
Automation
/ok-to-test tags="@tag.IDE"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/11688613194
Commit: 87b7ed8
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Tue, 05 Nov 2024 17:13:44 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit