-
Notifications
You must be signed in to change notification settings - Fork 348
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
Fixed responsive issue in resource page and user page #6067
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
LGTM |
@@ -79,7 +79,7 @@ export default function BoardView() { | |||
</div> | |||
|
|||
<BadgesList {...{ appliedFilters, FilterBadges }} /> | |||
<ScrollingComponent className="mt-4 flex flex-1 items-start overflow-x-scroll px-4 pb-2"> | |||
<ScrollingComponent className="mt-4 flex flex-1 items-start overflow-x-scroll px-4 pb-2 @container"> |
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 are we using a container here, we are not using any queries in the child! 🤔
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 @container
is for the div inside src/Components/Resource/ResourceBoard.tsx
check here: https://github.com/coronasafe/care_fe/pull/6067/files#:~:text=%3Cdiv-,%3Cdiv,className%3D%7BclassNames(,-%22mr%2D2%20h
WHAT
🤖 Generated by Copilot at cc164a0
This pull request enhances the responsiveness and adaptability of the user card and resource board components by using container-based media queries with Tailwind CSS. It adds the
@tailwindcss/container-queries
dependency and updates theclassName
props and@container
classes inManageUsers.tsx
,ResourceBoard.tsx
, andResourceBoardView.tsx
.Proposed Changes
container-queries
taliwind plugin@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at cc164a0
@tailwindcss/container-queries
dependency to enable container-based media queries in Tailwind CSS (link)@container
class toScrollingComponent
elements that wrap resource board and resource board view components (link, link)div
element that adds unnecessary space between buttons for linked facilities and skills in user card component (link)