Skip to content

armgit / ente

Public Imported from GitHub
0

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

Improve space post interactions

Anand Baburajanec0aa5f5a25e
diff --git a/web/apps/space/src/components/SpaceFileViewer.tsx b/web/apps/space/src/components/SpaceFileViewer.tsx
index 1451d834d6..a056bdbe53 100644
--- a/web/apps/space/src/components/SpaceFileViewer.tsx
+++ b/web/apps/space/src/components/SpaceFileViewer.tsx
@@ -1154,7 +1154,8 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
data-space-viewer-bottom="true"
sx={{
alignItems: "stretch",
- bottom: "16px",
+ bottom:
+ "max(24px, calc(env(safe-area-inset-bottom) + 16px))",
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
@@ -1335,7 +1336,8 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
data-space-viewer-bottom="true"
sx={{
alignItems: "stretch",
- bottom: "16px",
+ bottom:
+ "max(24px, calc(env(safe-area-inset-bottom) + 16px))",
display: "flex",
flexDirection: "column",
gap: 0,
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index c47b0a882d..f21a67b465 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -802,6 +802,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
left: 12,
lineHeight: "20px",
minHeight: 32,
+ pointerEvents: "none",
position: "absolute",
right: 12,
top: 12,
@@ -826,6 +827,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
justifyContent: "center",
overflow: "visible",
p: 0,
+ pointerEvents: "auto",
position: "relative",
width: feedAvatarSize,
"&:focus-visible": {
@@ -891,6 +893,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
minWidth: 0,
overflow: "hidden",
p: 0,
+ pointerEvents: "auto",
textAlign: "left",
textOverflow: "ellipsis",
whiteSpace: "nowrap",