-
Notifications
You must be signed in to change notification settings - Fork 32
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
UI & UX optimization #48
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ export function Author({ data }) { | |
<div className="flex justify-between pb-6 mt-6"> | ||
<div className="flex items-center" suppressHydrationWarning> | ||
<Avatar size={56} user={data?.team_user} /> | ||
<div className="ml-4"> | ||
<h4 className="text-sm font-bold md:text-lg"> | ||
<div className="ml-4 flex-1"> | ||
<h4 className="text-sm font-bold md:text-lg max-md:text-lg"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不用加 |
||
<a href={`/u/${data?.team_user?.user_handle}`}>{data?.team_user?.user_nick_name}</a> | ||
</h4> | ||
<p className="text-xs text-gray-500 md:text-sm"> | ||
<p className="text-xs text-gray-500 md:text-sm max-md:text-sm"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不用加 |
||
Posted on <span className="text-gray-50">{formatTime(Number(data?.base?.cs_created_at) * 1000, 'MMM D, YYYY HH:mm')}</span> · Latest update on{' '} | ||
<span className="text-gray-50">{formatTime(data?.base?.cs_updated_at * 1000, 'MMM D, YYYY')}</span> | ||
</p> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,14 +74,14 @@ export function Navs({data}) { | |
onClick={() => setOpenMenu(!openMenu)} | ||
href={i.link} | ||
> | ||
<li className="flex justify-between items-center font-bold h-14 text-sm"> | ||
<li className="flex justify-between items-center font-bold h-14 text-base"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 文档默认就是 16px,且祖先节点中没有单独设置过字号,所以去掉 |
||
{i.name} | ||
<ChevronRightIcon className="h-4 w-4 opacity-60" /> | ||
</li> | ||
</Link> : ( | ||
<div key={`header-menu-${k}`} className="collapse"> | ||
<input type="radio" name={`my-accordion-${k}`} checked="checked" readOnly /> | ||
<div className="collapse-title collapse-title-sm min-h-0 h-14 text-sm font-bold flex justify-between items-center"> | ||
<div className="collapse-title collapse-title-sm min-h-0 h-14 text-base font-bold flex justify-between items-center"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上面评论 |
||
{i.name} | ||
<ChevronDownIcon className="h-4 w-4 opacity-60" /> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,11 +168,11 @@ export function Footer() { | |
key={`footer-menus-${k}`} | ||
className="max-md:mb-4 max-md:border-t max-md:border-[rgba(255,255,255,0.06)] max-md:pt-6 md:ml-[64px]" | ||
> | ||
<h4 className="mb-0 text-sm font-semibold max-md:mb-2 md:mb-12 md:text-lg">{i.name}</h4> | ||
<h4 className="mb-0 text-sm font-semibold max-md:mb-2 md:mb-12 md:text-lg max-md:text-base">{i.name}</h4> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不用加 |
||
<ul> | ||
{i.items.map(subItem => ( | ||
<li | ||
className="text-xs leading-7 transition-all duration-300 hover:text-green hover:underline md:text-sm md:leading-10" | ||
className="text-xs leading-7 transition-all duration-300 hover:text-green hover:underline md:text-sm max-md:leading-7 max-md:text-sm md:leading-10" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不用加 |
||
key={`footer-menus-sub-${subItem.name}`} | ||
> | ||
{/* href={subItem.link} */} | ||
|
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.
用
max-md:px-0
即可,详见:https://tailwindcss.com/docs/padding#add-horizontal-padding