Fix: Timeline responsiveness (#11288)
Fixes #11136 [recording.webm](https://github.com/user-attachments/assets/328afab8-511a-4090-bdb0-e1cdb42565be)
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user