diff --git a/apps/client/src/widgets/collections/calendar/index.css b/apps/client/src/widgets/collections/calendar/index.css index d50837f28c..3101882536 100644 --- a/apps/client/src/widgets/collections/calendar/index.css +++ b/apps/client/src/widgets/collections/calendar/index.css @@ -90,8 +90,6 @@ } .center-container { - order: 100; - .title { flex-grow: 1; } diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx index 1d35c46ab3..c0fd0d7d3d 100644 --- a/apps/client/src/widgets/collections/calendar/index.tsx +++ b/apps/client/src/widgets/collections/calendar/index.tsx @@ -13,7 +13,7 @@ import date_notes from "../../../services/date_notes"; import dialog from "../../../services/dialog"; import froca from "../../../services/froca"; import { t } from "../../../services/i18n"; -import { isMobile } from "../../../services/utils"; +import { isDesktop, isMobile, isMobile } from "../../../services/utils"; import CollectionProperties from "../../note_bars/CollectionProperties"; import ActionButton from "../../react/ActionButton"; import Button, { ButtonGroup } from "../../react/Button"; @@ -147,11 +147,7 @@ export default function CalendarView({ note, noteIds }: ViewModeProps - } - rightChildren={} - /> + }) { +function CalendarCollectionProperties({ note, calendarRef }: { + note: FNote; + calendarRef: RefObject; +}) { const { title, viewType: currentViewType } = useOnDatesSet(calendarRef); const currentViewData = CALENDAR_VIEWS.find(v => calendarRef.current && v.type === currentViewType); + const isMobileLocal = isMobile(); - return <> - calendarRef.current?.prev()} /> - {title} - calendarRef.current?.next()} /> -