Skip to content
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

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

GokulramGHV
Copy link
Member

@GokulramGHV GokulramGHV commented Aug 12, 2023

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 the className props and @container classes in ManageUsers.tsx, ResourceBoard.tsx, and ResourceBoardView.tsx.

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at cc164a0

  • Add @tailwindcss/container-queries dependency to enable container-based media queries in Tailwind CSS (link)
  • Apply @container class to ScrollingComponent elements that wrap resource board and resource board view components (link, link)
  • Replace fixed width classes with container-based width classes for resource board component to make it more responsive and adaptive to different screen sizes and resolutions (link)
  • Replace fixed flex direction classes with container-based flex direction classes for user card component and its child elements to make them more responsive and adaptive to different screen sizes and resolutions (link, link)
  • Remove redundant div element that adds unnecessary space between buttons for linked facilities and skills in user card component (link)

@GokulramGHV GokulramGHV requested a review from a team August 12, 2023 08:32
@GokulramGHV GokulramGHV requested a review from a team as a code owner August 12, 2023 08:32
@vercel
Copy link

vercel bot commented Aug 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 12, 2023 8:33am

@netlify
Copy link

netlify bot commented Aug 12, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit cc164a0
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64d743980a80b4000806d281
😎 Deploy Preview https://deploy-preview-6067--care-egov-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nihal467
Copy link
Member

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">
Copy link
Member

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! 🤔

Copy link
Member Author

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

@khavinshankar khavinshankar added the question Further information is requested label Aug 14, 2023
@khavinshankar khavinshankar merged commit e938f04 into coronasafe:develop Aug 17, 2023
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress passed question Further information is requested tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Responsive issue in resource page and user page
3 participants