Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tighten Space action menus

Anand Baburajandd9438facbdd
diff --git a/web/apps/space/src/components/SpaceFileViewer.tsx b/web/apps/space/src/components/SpaceFileViewer.tsx
index 29f12e234d..3365c7c9b4 100644
--- a/web/apps/space/src/components/SpaceFileViewer.tsx
+++ b/web/apps/space/src/components/SpaceFileViewer.tsx
@@ -1299,7 +1299,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
paper: {
sx: {
bgcolor: "#1E1E1E",
- borderRadius: "16px",
+ borderRadius: "14px",
boxShadow:
"0 14px 40px rgba(0, 0, 0, 0.16)",
mt: "6px",
@@ -1316,6 +1316,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
>
{canUpdatePostCaption && (
<MenuItem
+ dense
disableRipple
onClick={requestCaptionEdit}
sx={{
@@ -1324,9 +1325,9 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
color: textBase,
display: "flex",
gap: "8px",
- minHeight: 0,
- px: "8px",
- py: "7px",
+ minHeight: 36,
+ px: "9px",
+ py: "4px",
whiteSpace: "nowrap",
"&.Mui-focusVisible": {
bgcolor: "rgba(255, 255, 255, 0.1)",
@@ -1360,6 +1361,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
)}
{canDeletePost && (
<MenuItem
+ dense
disableRipple
onClick={requestDeletePost}
sx={{
@@ -1368,9 +1370,9 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
color: dangerColor,
display: "flex",
gap: "8px",
- minHeight: 0,
- px: "8px",
- py: "7px",
+ minHeight: 36,
+ px: "9px",
+ py: "4px",
whiteSpace: "nowrap",
"&.Mui-focusVisible": {
bgcolor: "rgba(246, 58, 58, 0.14)",
diff --git a/web/apps/space/src/screens/FriendsScreen.tsx b/web/apps/space/src/screens/FriendsScreen.tsx
index 95074411dc..1224643b80 100644
--- a/web/apps/space/src/screens/FriendsScreen.tsx
+++ b/web/apps/space/src/screens/FriendsScreen.tsx
@@ -268,7 +268,7 @@ const FriendRow: React.FC<FriendRowProps> = ({
slotProps={{
paper: {
sx: {
- borderRadius: "16px",
+ borderRadius: "14px",
boxShadow: "0 14px 40px rgba(0, 0, 0, 0.16)",
mt: "6px",
minWidth: 0,
@@ -280,15 +280,16 @@ const FriendRow: React.FC<FriendRowProps> = ({
}}
>
<MenuItem
+ dense
disableRipple
onClick={unfriend}
sx={{
borderRadius: "10px",
color: dangerColor,
gap: "8px",
- minHeight: spaceTouchTargetSize,
+ minHeight: 36,
px: "9px",
- py: "7px",
+ py: "4px",
whiteSpace: "nowrap",
"&.Mui-focusVisible": {
bgcolor: "rgba(246, 58, 58, 0.06)",