Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(editor): fill modal viewport in attachment preview (MUL-2431) (#2891)

Naiyuan Qing5b8303b83ca8
diff --git a/packages/views/editor/attachment-preview-modal.tsx b/packages/views/editor/attachment-preview-modal.tsx
index 89d4fc9768..a5166d9519 100644
--- a/packages/views/editor/attachment-preview-modal.tsx
+++ b/packages/views/editor/attachment-preview-modal.tsx
@@ -352,7 +352,7 @@ function PreviewContent({
<img
src={state.mediaUrl}
alt={state.filename}
- className="max-h-full max-w-full rounded-lg object-contain"
+ className="h-full w-full rounded-lg object-contain"
/>
</div>
);
@@ -370,7 +370,7 @@ function PreviewContent({
<video
src={state.mediaUrl}
controls
- className="max-h-full max-w-full"
+ className="h-full w-full object-contain"
/>
</div>
);