Skip to content

armgit / ente

Public Imported from GitHub
0

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

[ensu] show rename onhover

aaqila3d2a0d71794
diff --git a/web/apps/ensu/src/components/chat/ChatSidebar.tsx b/web/apps/ensu/src/components/chat/ChatSidebar.tsx
index 2e0360037d..55cc9bf918 100644
--- a/web/apps/ensu/src/components/chat/ChatSidebar.tsx
+++ b/web/apps/ensu/src/components/chat/ChatSidebar.tsx
@@ -308,6 +308,11 @@ export const ChatSidebar = memo(
"&.Mui-selected:hover": {
backgroundColor: "fill.faintHover",
},
+ "& .rename-chat-button": {
+ visibility: "hidden",
+ },
+ "&:hover .rename-chat-button, &:focus-within .rename-chat-button":
+ { visibility: "visible" },
}}
>
<Stack
@@ -350,6 +355,7 @@ export const ChatSidebar = memo(
</Typography>
</Box>
<IconButton
+ className="rename-chat-button"
aria-label="Rename chat"
sx={actionButtonSx}
onClick={(event) => {