Skip to content

Commit

Permalink
feat(app): tweak styling of timeline border thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
cfu288 committed Feb 15, 2024
1 parent ac2be8e commit 6dade7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/components/timeline/TimelineYearHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function TimelineYearHeader({ year }: { year: string }) {
<div className="flex flex-row py-1">
<div className="relative flex flex-col">
<div className="h-0 mt-0 bg-transparent">
<p className="px-2 text-xl font-black bg-gray-100 border-4 border-gray-300 rounded-md text-center">{`${format(
<p className="px-2 text-xl font-black bg-gray-100 border-2 md:border-4 border-gray-300 rounded-md text-center">{`${format(
parseISO(year),
'yyyy',
)}`}</p>
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/pages/TimelineTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TimelineMonthDayHeader: React.FC<TimelineMonthDayHeaderProps> = ({
<div className="flex flex-row py-1">
<div className="relative flex flex-col">
<div className="h-0 mt-0 bg-transparent">
<div className="px-3 bg-gray-100 border-4 border-gray-300 rounded-full aspect-square flex flex-col justify-center">
<div className="px-3 bg-gray-100 border-2 md:border-4 border-gray-300 rounded-full aspect-square flex flex-col justify-center">
<p className="text-sm font-black text-center">
{`${
checkIfDefaultDate(dateKey)
Expand Down Expand Up @@ -153,12 +153,11 @@ export function TimelineTab() {
{[...yearMap.entries()].map(
([year, dateMap], yearIndex, yearElements) => (
<div key={year} className="relative">
<div className="absolute left-8 top-4 h-[calc(100%-12px)] w-1 bg-gray-300 z-0 rounded-full" />
<div className="absolute left-8 top-4 h-[calc(100%-12px)] w-[2px] md:w-1 bg-gray-300 z-0 rounded-full" />
<TimelineYearHeader key={`${year}${yearIndex}`} year={year} />
{Object.entries(dateMap).map(([dateKey, itemList]) => (
<div key={dateKey} className="ml-1">
<TimelineMonthDayHeader dateKey={dateKey} />

<TimelineItem
dateKey={dateKey}
itemList={itemList}
Expand Down

0 comments on commit 6dade7c

Please sign in to comment.