mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: profile display name
This commit is contained in:
parent
fb60c91c83
commit
9e02504e14
3 changed files with 13 additions and 1 deletions
|
@ -332,7 +332,9 @@ export function UserContent({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.profileInformation}>
|
<div className={styles.profileInformation}>
|
||||||
<h2 style={{ fontWeight: "bold" }}>{userProfile.displayName}</h2>
|
<h2 className={styles.profileDisplayName}>
|
||||||
|
{userProfile.displayName}
|
||||||
|
</h2>
|
||||||
{currentGame && (
|
{currentGame && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -126,6 +126,7 @@ export const UserEditProfile = ({
|
||||||
value={form.displayName}
|
value={form.displayName}
|
||||||
required
|
required
|
||||||
minLength={3}
|
minLength={3}
|
||||||
|
maxLength={50}
|
||||||
containerProps={{ style: { width: "100%" } }}
|
containerProps={{ style: { width: "100%" } }}
|
||||||
onChange={(e) => setForm({ ...form, displayName: e.target.value })}
|
onChange={(e) => setForm({ ...form, displayName: e.target.value })}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -23,6 +23,7 @@ export const profileContentBox = style({
|
||||||
|
|
||||||
export const profileAvatarContainer = style({
|
export const profileAvatarContainer = style({
|
||||||
width: "96px",
|
width: "96px",
|
||||||
|
minWidth: "96px",
|
||||||
height: "96px",
|
height: "96px",
|
||||||
borderRadius: "50%",
|
borderRadius: "50%",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -100,6 +101,14 @@ export const profileInformation = style({
|
||||||
alignItems: "flex-start",
|
alignItems: "flex-start",
|
||||||
color: "#c0c1c7",
|
color: "#c0c1c7",
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
|
overflow: "hidden",
|
||||||
|
});
|
||||||
|
|
||||||
|
export const profileDisplayName = style({
|
||||||
|
fontWeight: "bold",
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
width: "100%",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const profileContent = style({
|
export const profileContent = style({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue