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

feat: update table width in pages/courses #146

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

laporchen
Copy link
Contributor

Allowing the table being centered in the courses page.

@laporchen laporchen changed the title feat: update table width in page courses feat: update table width in page courses Aug 6, 2023
@laporchen laporchen changed the title feat: update table width in page courses feat: update table width in page/courses Aug 6, 2023
@laporchen laporchen changed the title feat: update table width in page/courses feat: update table width in pages/courses Aug 6, 2023
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6115991
Status: ✅  Deploy successful!
Preview URL: https://377fbb0c.nfe.pages.dev
Branch Preview URL: https://feat-courses-page-mobile.nfe.pages.dev

View logs

@laporchen laporchen mentioned this pull request Aug 6, 2023
10 tasks
<td>
<td
:class="{
'min-w-[10rem] max-w-[12rem] whitespace-pre-wrap': !isDesktop,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious whether isDesktop is a common usage in RWD? The last time I applied RWD, I was using like lgAndUp, mdAndDown. just discussion :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are multiple methods to apply RWD. Like inline class with lg, md, for example.
Using isDesktop to separate two width ranges with dynamic binding is easier to maintain in my opinion.
If there's more than 2 device widths to consider. I think the one you mentioned would be a better solution.
I don't think we are making more design other than mobile right now.

Copy link
Member

@uier uier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The courses page now looks good in mobile phone! thanks for contributing 👍

@uier
Copy link
Member

uier commented Aug 7, 2023

@laporchen remember to assign yourself as one of the PR Assignees, and after the changes approved you can Squash and merge the changes by yourself! thanks 😄

@laporchen laporchen self-assigned this Aug 7, 2023
@laporchen laporchen merged commit 43f0a76 into main Aug 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants