diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
index 7b8defff9..0d48f8a60 100644
--- a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
+++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
@@ -12,6 +12,7 @@ import { Modal } from '@/ui/layout/modal/components/Modal';
import { useRecoilValue } from 'recoil';
import { ActivityList } from '@/activities/components/ActivityList';
+import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
import { AttachmentRow } from './AttachmentRow';
const DocumentViewer = lazy(() =>
@@ -83,6 +84,7 @@ const StyledHeader = styled.div`
display: flex;
justify-content: space-between;
width: 100%;
+ min-height: 40px;
`;
const StyledModalTitle = styled.span`
@@ -90,12 +92,17 @@ const StyledModalTitle = styled.span`
`;
const StyledModalHeader = styled(Modal.Header)`
+ height: auto;
padding: 0;
`;
const StyledModalContent = styled(Modal.Content)`
- padding-left: 0;
- padding-right: 0;
+ padding: 0;
+`;
+
+const StyledModal = styled(Modal)`
+ gap: ${({ theme }) => theme.spacing(2)};
+ padding: ${({ theme }) => theme.spacing(3)};
`;
const StyledButtonContainer = styled.div`
@@ -169,7 +176,7 @@ export const AttachmentList = ({
)}
{previewedAttachment && isAttachmentPreviewEnabled && (
-
+
{previewedAttachment.name}
@@ -187,23 +194,30 @@ export const AttachmentList = ({
-
-
-
- Loading document viewer...
-
-
- }
- >
-
-
-
-
+
+
+
+
+ Loading document viewer...
+
+
+ }
+ >
+
+
+
+
+
)}
>
);