-
-
Notifications
You must be signed in to change notification settings - Fork 53
Small docs fix #877
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
Small docs fix #877
Conversation
WalkthroughThis pull request updates several documentation components by replacing fixed inline styles with responsive Tailwind CSS classes and standardizing text labels. Changes include modifying the width styles for components like Accordion, Card, and Progress, updating button text from "Click Me!" to "Button" (with a span wrapper in one case), and adding new documentation sections for button variants and sizes. Minor adjustments to layout structure and class names further enhance the responsiveness and presentation of the documentation pages. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
docs/app/docs/layout.tsxOops! Something went wrong! :( ESLint: 8.56.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/docs/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. docs/components/layout/Documentation/helpers/ComponentHero/ComponentHero.jsOops! Something went wrong! :( ESLint: 8.56.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/docs/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
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 (
|
| </div> | ||
| <div className='lg:px-4 text-gray-1000 flex-1 flex flex-col gap-4 overflow-y-scroll pt-2' id="docs-content"> | ||
|
|
||
| <div className='mt-2 max-w-[1440px] mx-auto' > |
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.
why?
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.
this was making the page overflow on mobile devices
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.
this also avoids stretching on wide/big screens
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.
i will look into it and make changes accordingly
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.
to simulate how this might look on a 4k screen for example - you can zoom out in your browser to 50% and see how the content looks in the layout
this will give you a good idea if it looks good or not, I've recently added this to fix the stretching issue, see how you can satisfy both situations
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.
fixed it
| </div> | ||
| </div> | ||
| </Documentation.ComponentHero> | ||
| <div className="max-w-screen-md"> |
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.
why?
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.
the classname max-w-screen-md prevents the stretch of the tables it is removed now cuz the Documentation.Table already has the class
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.
got it
| Kbd is a component that can be used to display keyboard keys. | ||
| `}> | ||
| <Documentation.ComponentHero codeUsage={codeUsage}> | ||
| <Card className="flex items-center justify-center bg-gray-50" style={{width:"600px",height:"120px"}}> |
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.
hardcoding height will remove its responsiveness
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.
its removed and the additions works
Fixes #872 and #873
makes the overflowing card scroll
https://github.com/user-attachments/assets/580aa818-1057-4723-ba4b-df35ca4bb641
Summary by CodeRabbit
Documentation
Style