Skip to content

armgit / ente

Public Imported from GitHub
0

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

Make it work better with the hover state

Manav Rathi3ec410f9321f
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 75bff3a74e..69c0518212 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -287,7 +287,7 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({
startIcon={<LinkIcon />}
onClick={createSharableURLHelper}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
label={t("collect_photos")}
startIcon={<DownloadSharpIcon />}
@@ -382,7 +382,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
endIcon={<ChevronRightIcon />}
onClick={openManageEmailShare}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</>
) : null}
<RowButton
@@ -390,7 +390,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
onClick={openAddViewer}
label={t("add_viewers")}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
startIcon={<AddIcon />}
onClick={openAddCollab}
@@ -923,7 +923,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
startIcon={<Avatar email={item} />}
endIcon={<ChevronRightIcon />}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</React.Fragment>
))}
@@ -954,7 +954,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
startIcon={<Avatar email={item} />}
endIcon={<ChevronRightIcon />}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</React.Fragment>
))}
<RowButton
@@ -1124,7 +1124,7 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({
"COLLABORATOR" && <DoneIcon />
}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
fontWeight="regular"
@@ -1281,8 +1281,7 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({
label={t("copy_link")}
/>
)}
-
- <RowButtonDivider hasIcon={true} />
+ <RowButtonDivider />
<RowButton
startIcon={<LinkIcon />}
endIcon={<ChevronRightIcon />}
diff --git a/web/packages/base/components/RowButton.tsx b/web/packages/base/components/RowButton.tsx
index 08e822c6ad..a3bd9c5308 100644
--- a/web/packages/base/components/RowButton.tsx
+++ b/web/packages/base/components/RowButton.tsx
@@ -57,23 +57,11 @@ export const RowButtonGroupHint: React.FC<React.PropsWithChildren> = ({
</Typography>
);
-interface RowButtonDividerProps {
- /**
- * If true, then the divider leaves the leading edge hanging which visually
- * looks better when used to separate buttons which have leading icons.
- */
- hasIcon?: boolean;
-}
-
/**
* A divider for buttons in a {@link RowButtonGroup}.
*/
-export const RowButtonDivider: React.FC<RowButtonDividerProps> = ({
- hasIcon,
-}) => (
- <Divider
- sx={[{ "&&&": { my: 0 } }, hasIcon ? { ml: "48px" } : { ml: "16px" }]}
- />
+export const RowButtonDivider = () => (
+ <Divider sx={{ "&&&": { mttty: 0 }, opacity: 0.4 }} />
);
/**