Merge pull request #793 from lethemanh/774-fix-date-time-layout-allday

#774 fix issue of date time layout allday
This commit is contained in:
lethemanh
2026-04-16 14:36:19 +07:00
committed by GitHub
@@ -24,8 +24,8 @@ export function useDateTimeLayout({
showEndDate
}: DateTimeLayoutProps): LayoutMode {
return useMemo(() => {
const isSpecialRange = hasEndDateChanged || (!allday && spansMultipleDays)
if (showMore || isSpecialRange) {
const isSpecialRange = hasEndDateChanged || spansMultipleDays
if (!allday && (showMore || isSpecialRange)) {
return LAYOUT_MODE.EXPANDED
}
if (allday || showEndDate) return LAYOUT_MODE.ALL_DAY