Fix: Timeline responsiveness (#11288)

Fixes #11136


[recording.webm](https://github.com/user-attachments/assets/328afab8-511a-4090-bdb0-e1cdb42565be)
This commit is contained in:
Gaurav
2025-04-02 13:37:05 +05:30
committed by GitHub
parent 44bf393b06
commit 9a2f7d8b71
6 changed files with 140 additions and 53 deletions

View File

@ -26,7 +26,7 @@ const StyledCard = styled(Card)`
background: ${({ theme }) => theme.background.secondary};
border: 1px solid ${({ theme }) => theme.border.color.medium};
border-radius: ${({ theme }) => theme.border.radius.md};
box-sizing: border-box;
display: flex;
padding: ${({ theme }) => theme.spacing(2)};
flex-direction: column;

View File

@ -14,6 +14,7 @@ export interface EventRowDynamicComponentProps {
mainObjectMetadataItem: ObjectMetadataItem;
linkedObjectMetadataItem: ObjectMetadataItem | null;
authorFullName: string;
createdAt?: string;
}
export const StyledEventRowItemColumn = styled.div`
@ -34,6 +35,7 @@ export const EventRowDynamicComponent = ({
mainObjectMetadataItem,
linkedObjectMetadataItem,
authorFullName,
createdAt,
}: EventRowDynamicComponentProps) => {
switch (linkedObjectMetadataItem?.nameSingular) {
case 'calendarEvent':
@ -65,6 +67,7 @@ export const EventRowDynamicComponent = ({
linkedObjectMetadataItem={linkedObjectMetadataItem}
authorFullName={authorFullName}
objectNameSingular={CoreObjectNameSingular.Task}
createdAt={createdAt}
/>
);
case 'note':
@ -76,6 +79,7 @@ export const EventRowDynamicComponent = ({
linkedObjectMetadataItem={linkedObjectMetadataItem}
authorFullName={authorFullName}
objectNameSingular={CoreObjectNameSingular.Note}
createdAt={createdAt}
/>
);
default:
@ -86,6 +90,7 @@ export const EventRowDynamicComponent = ({
mainObjectMetadataItem={mainObjectMetadataItem}
linkedObjectMetadataItem={linkedObjectMetadataItem}
authorFullName={authorFullName}
createdAt={createdAt}
/>
);
}