diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx index 5f561387..59c416c9 100644 --- a/frontend/src/components/AppShell.tsx +++ b/frontend/src/components/AppShell.tsx @@ -469,6 +469,7 @@ export function AppShell({ children }: AppShellProps) { setEventsRefreshTrigger={cal.handleSetEventsRefreshTrigger} setSidebarEvents={cal.handleSetSidebarEvents} onCalendarChange={cal.handleCalendarChange} + fixedDesktop={!isMessageDialogPage} /> diff --git a/frontend/src/components/calendar/CalendarSidebar.tsx b/frontend/src/components/calendar/CalendarSidebar.tsx index 5938524c..26c5abbc 100644 --- a/frontend/src/components/calendar/CalendarSidebar.tsx +++ b/frontend/src/components/calendar/CalendarSidebar.tsx @@ -15,16 +15,22 @@ interface CalendarSidebarProps { setEventsRefreshTrigger: (value: number | ((prev: number) => number)) => void; setSidebarEvents: (events: CalendarEvent[]) => void; onCalendarChange: (calendarId: number | null) => void; + fixedDesktop?: boolean; } /** * Обертка для календаря в правом сайдбаре (десктоп) */ export const CalendarSidebar = memo(function CalendarSidebar(props: CalendarSidebarProps) { + const { fixedDesktop = false, ...calendarProps } = props; return ( );