Merge branch 'feature/user-profile' of github.com:hydralauncher/hydra into feature/user-profile

This commit is contained in:
Chubby Granny Chaser 2024-06-19 05:08:32 +01:00
commit 1ef8e3fce3
No known key found for this signature in database
3 changed files with 9 additions and 13 deletions

View file

@ -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]

View file

@ -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} />

View file

@ -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",