-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
style: added uniform padding around the on this page
header
#3249
Conversation
Signed-off-by: Manas Malla <[email protected]>
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.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3249--asyncapi-website.netlify.app/ |
@ManasMalla Follow proper PR title according to the Contributing Guideline. |
on this page
headeron this page
header
on this page
headeron this page
header
@devilkiller-ag @MikeRalphson @antoniogarrote @asyncapi-bot would really love a review over this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3249 +/- ##
=======================================
Coverage 59.01% 59.01%
=======================================
Files 21 21
Lines 649 649
=======================================
Hits 383 383
Misses 266 266 ☔ View full report in Codecov by Sentry. |
WalkthroughThe changes in this pull request involve a modification to the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
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
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
components/TOC.tsx (1)
50-50
: Consider enhancing responsive margin handling.While the current change adds uniform padding, consider making the margin responsive based on viewport size for better visual hierarchy on different devices.
- ${cssBreakingPoint === 'xl' ? 'xl:block' : 'lg:block'} md:top-24 md:max-h-(screen-14) mb-4 z-20`)} + ${cssBreakingPoint === 'xl' ? 'xl:block' : 'lg:block'} md:top-24 md:max-h-(screen-14) mb-2 md:mb-3 lg:mb-4 z-20`)}
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
components/TOC.tsx
(1 hunks)
🔇 Additional comments (1)
components/TOC.tsx (1)
50-50
: LGTM! The margin addition addresses the padding inconsistency.
The addition of mb-4
class provides a uniform bottom margin of 1rem, which aligns with the PR objective of maintaining consistent padding around the "On this page" header.
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.
Thanks @ManasMalla 🚢
/rtm |
On this
docs
page, on smaller device breakpoints, theOn this page
becomes a sticky header which breaks the uniform padding used through out the website, which has been fixed in this PR.Resolves #3248
Summary by CodeRabbit