Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Constrain draft post composer on desktop

Anand Baburajanbad59ee72331
diff --git a/web/apps/social/src/components/SocialFileViewer.tsx b/web/apps/social/src/components/SocialFileViewer.tsx
index 5accda1ccf..706b4b1077 100644
--- a/web/apps/social/src/components/SocialFileViewer.tsx
+++ b/web/apps/social/src/components/SocialFileViewer.tsx
@@ -1038,9 +1038,12 @@ export const SocialFileViewer: React.FC<SocialFileViewerProps> = ({
boxSizing: "border-box",
display: "flex",
gap: "8px",
- left: "16px",
+ left: { xs: "16px", sm: 0 },
+ maxWidth: { sm: 390 },
+ mx: { sm: "auto" },
position: "fixed",
- right: "16px",
+ right: { xs: "16px", sm: 0 },
+ width: { sm: "calc(100% - 32px)" },
zIndex: 2,
}}
>