Skip to content

Commit

Permalink
changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Nov 18, 2024
1 parent de725e3 commit 7cdbbe8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ export function CalendarGraph({
<View>
<View style={{ marginBottom: 10 }}>
<strong>

Check warning on line 123 in packages/desktop-client/src/components/reports/graphs/CalendarGraph.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎······················{format(day.date,·'MMM·dd')}⏎····················` with `{format(day.date,·'MMM·dd')}`
{t('Day:') + ' '}
{format(day.date, 'dd')}
{format(day.date, 'MMM dd')}
</strong>
</View>
<View style={{ lineHeight: 1.5 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ export function CalendarCard({
height: '100%',
margin: 6,
overflowX:
isNarrowWidth && cardOrientation === 'row' ? 'auto' : 'hidden',
cardOrientation === 'row'
? isNarrowWidth
? 'auto'
: data?.calendarData.length > 6
? 'auto'
: 'hidden'
: 'hidden',
...styles.horizontalScrollbar,
}}
>
Expand All @@ -275,8 +281,12 @@ export function CalendarCard({
textAlign: 'left',
marginBottom: isNarrowWidth ? 4 : 0,
width:
isNarrowWidth && cardOrientation === 'row' && data?.calendarData
? `${data.calendarData.length * 100}%`
cardOrientation === 'row'
? isNarrowWidth
? `${data?.calendarData.length * 100}%`
: data?.calendarData.length > 6
? `${100 + ((data?.calendarData.length - 6) % 6) * 17}%`
: 'auto'
: 'auto',
}}
>
Expand Down

0 comments on commit 7cdbbe8

Please sign in to comment.