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: refactor the code for the tokens page and adapt the style to the latest design draft #245

Conversation

WhiteMinds
Copy link

Refs: Magickbase/ckb-explorer-public-issues#523

Mainly modified the desktop and mobile styles of the list header and list items on this page.

Copy link

vercel bot commented Feb 1, 2024

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

Name Status Preview Comments Updated (UTC)
ckb-explorer-frontend-in-magickbase-repo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2024 2:08am

@@ -4,15 +4,17 @@ import styles from './Card.module.scss'

export interface CardProps extends ComponentProps<'div'> {
rounded?: boolean | 'top' | 'bottom'
shadow?: boolean
Copy link

Choose a reason for hiding this comment

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

It is ambiguous I think, because there is another meaning for shadow, boxShadow instead maybe better.

Copy link
Author

Choose a reason for hiding this comment

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

I'm not quite sure what you mean by the other meaning of shadow?

In my opinion, shadow referring to box-shadow is a common implementation, as seen in Tailwind CSS as well.

However, the meaning of the shadow property here is not entirely about box-shadow, it just indicates whether to enable shadow for the card, box-shadow is just one of the implementation details inside the component.

@WhiteMinds WhiteMinds added this pull request to the merge queue Feb 2, 2024
Merged via the queue into Magickbase:develop with commit 264db05 Feb 2, 2024
3 checks passed
@WhiteMinds WhiteMinds deleted the feat/523_InscriptionsPageMobileStyles branch February 2, 2024 07:21
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.

4 participants