#770 remove sidebar margin in iframe (#794)

Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
This commit is contained in:
lethemanh
2026-04-16 14:25:35 +07:00
committed by GitHub
parent f54873c7a6
commit 79da6d63ef
@@ -5,7 +5,7 @@ import { MiniCalendar } from '../MiniCalendar'
import { CalendarSidebarProps } from './SideBar' import { CalendarSidebarProps } from './SideBar'
import { SidebarCommonContent } from './SidebarCommonContent' import { SidebarCommonContent } from './SidebarCommonContent'
export function DesktopSidebar({ export const DesktopSidebar: React.FC<CalendarSidebarProps> = ({
calendarRef, calendarRef,
isIframe, isIframe,
onCreateEvent, onCreateEvent,
@@ -15,7 +15,7 @@ export function DesktopSidebar({
setTempUsers, setTempUsers,
selectedCalendars, selectedCalendars,
setSelectedCalendars setSelectedCalendars
}: CalendarSidebarProps) { }) => {
const { t } = useI18n() const { t } = useI18n()
return ( return (
@@ -30,7 +30,7 @@ export function DesktopSidebar({
paddingLeft: 3, paddingLeft: 3,
paddingRight: 2, paddingRight: 2,
width: '270px', width: '270px',
marginTop: '70px' marginTop: isIframe ? 0 : '70px'
}, },
zIndex: 5 zIndex: 5
}} }}