mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/user-profile' of github.com:hydralauncher/hydra into feature/user-profile
This commit is contained in:
commit
1ef8e3fce3
3 changed files with 9 additions and 13 deletions
|
@ -44,6 +44,12 @@ export function useUserDetails() {
|
||||||
"userDetails",
|
"userDetails",
|
||||||
JSON.stringify({ ...userDetails, profileBackground })
|
JSON.stringify({ ...userDetails, profileBackground })
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
dispatch(setProfileBackground(null));
|
||||||
|
window.localStorage.setItem(
|
||||||
|
"userDetails",
|
||||||
|
JSON.stringify({ ...userDetails })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
|
|
|
@ -105,7 +105,7 @@ export const UserEditProfileModal = ({
|
||||||
src={newImageBase64 ?? userProfile.profileImageUrl ?? ""}
|
src={newImageBase64 ?? userProfile.profileImageUrl ?? ""}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<PersonIcon size={72} />
|
<PersonIcon size={96} />
|
||||||
)}
|
)}
|
||||||
<div className={styles.editProfileImageBadge}>
|
<div className={styles.editProfileImageBadge}>
|
||||||
<PencilIcon size={16} />
|
<PencilIcon size={16} />
|
||||||
|
|
|
@ -40,6 +40,7 @@ export const profileAvatarEditContainer = style({
|
||||||
height: "128px",
|
height: "128px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
borderRadius: "50%",
|
borderRadius: "50%",
|
||||||
|
color: vars.color.body,
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
backgroundColor: vars.color.background,
|
backgroundColor: vars.color.background,
|
||||||
|
@ -101,29 +102,17 @@ export const contentSidebar = style({
|
||||||
maxWidth: "250px",
|
maxWidth: "250px",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
},
|
},
|
||||||
"(min-width: 1280px)": {
|
|
||||||
width: "100%",
|
|
||||||
maxWidth: "350px",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const feedGameIcon = style({
|
export const feedGameIcon = style({
|
||||||
height: "100%",
|
height: "100%",
|
||||||
display: "flex",
|
|
||||||
justifyContent: "center",
|
|
||||||
alignItems: "center",
|
|
||||||
position: "relative",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const libraryGameIcon = style({
|
export const libraryGameIcon = style({
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
borderRadius: "4px",
|
borderRadius: "4px",
|
||||||
display: "flex",
|
|
||||||
justifyContent: "center",
|
|
||||||
alignItems: "center",
|
|
||||||
position: "relative",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const feedItem = style({
|
export const feedItem = style({
|
||||||
|
@ -174,6 +163,7 @@ export const editProfileImageBadge = style({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
|
color: vars.color.background,
|
||||||
backgroundColor: vars.color.muted,
|
backgroundColor: vars.color.muted,
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
bottom: "0px",
|
bottom: "0px",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue