-
Notifications
You must be signed in to change notification settings - Fork 536
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: Overflowing containers of Location Page #10399
Conversation
WalkthroughThe changes adjust the layout and styling in the Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
Tip 🌐 Web search-backed reviews and chat
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 (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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
🧹 Nitpick comments (1)
src/pages/Facility/settings/locations/LocationView.tsx (1)
128-128
: Remove unnecessary flex utilities from Input component.The
flex flex-wrap
utilities on the Input component are unnecessary since input elements don't have child elements to wrap.- className="w-full flex flex-wrap" + className="w-full"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/pages/Facility/settings/locations/LocationView.tsx
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: cypress-run (1)
🔇 Additional comments (5)
src/pages/Facility/settings/locations/LocationView.tsx (5)
98-98
: LGTM! Good use of flexbox for responsive layout.The change from fixed spacing to a flexible container with margin and wrapping capabilities will help prevent overflow issues.
99-100
: LGTM! Good responsive layout structure.The addition of flex-wrap and proper spacing utilities will ensure the header content adapts well to different screen sizes.
101-101
: LGTM! Good spacing and wrapping for title section.The combination of flex-wrap, gap, and padding ensures proper spacing and wrapping of the title and badges.
120-120
: LGTM! Good width constraint with flexibility.The fixed width with flex-wrap provides a good balance between consistent sizing and responsive behavior.
139-139
: LGTM! Good consistent spacing.The added padding and margin provide appropriate spacing around the button.
@@ -117,15 +117,15 @@ export default function LocationView({ id, facilityId }: Props) { | |||
</Button> | |||
)} | |||
</div> | |||
<div className="w-72"> | |||
<div className="flex flex-wrap w-72"> |
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.
These classes don't do anything, make sure to cleanup what is not required
<Input | ||
placeholder={t("search_by_name")} | ||
value={searchQuery} | ||
onChange={(e) => { | ||
setSearchQuery(e.target.value); | ||
setPage(1); | ||
}} | ||
className="w-full" | ||
className="w-full flex flex-wrap" |
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.
Same for this
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 buttons feels like it's randomly placed. can we improve that?
Proposed Changes
Before update:
After Update:
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit