Skip to content

Commit

Permalink
style: li宽度微调
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangkx committed Aug 12, 2024
1 parent 9cabd82 commit f28edb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/calendar/components/monthItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function MonthItem({ months }) {
<h2 className="absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] text-7xl text-gray-300 text-opacity-80 font-bold z-[-1]">{index + 1}</h2>
{mon.map((week, idx) => <Fragment key={idx}>
{week.map((w, isx) => <li key={isx}
className={clsx({ 'relative w-[80%] h-10 m-2 rounded-lg': true, 'bg-blue-500': dayjs().format('YYYY-MM-DD') === w.toString() })}>
className={clsx({ 'relative h-10 m-2 rounded-lg': true, 'bg-blue-500': dayjs().format('YYYY-MM-DD') === w.toString() })}>
<span className={clsx({ 'text-slate-900': w.getMonth() === index + 1, 'text-slate-400': w.getMonth() !== index + 1, 'font-bold': dayjs().format('YYYY-MM-DD') === w.toString(), 'text-white': dayjs().format('YYYY-MM-DD') === w.toString() })}>{w.getDay()}</span>
<i className={clsx({ 'w-[100%] text-clip overflow-hidden whitespace-nowrap absolute bottom-0.5 left-[50%] translate-x-[-50%] text-xs not-italic': true }
, { 'text-slate-400': w.getMonth() !== index + 1 }, { 'text-gray-500': w.getMonth() === index + 1 }, { 'text-rose-500': calcFestival(w).festival },
Expand Down

0 comments on commit f28edb8

Please sign in to comment.