зеркало из https://github.com/mozilla/fxa.git
fix(content): Resize avatar in Subscription Management
This commit is contained in:
Родитель
a7e117a5c4
Коммит
fc2af2aafa
|
@ -48,11 +48,9 @@
|
||||||
// remove when Payments isn't using `avatar-settings-view`
|
// remove when Payments isn't using `avatar-settings-view`
|
||||||
&.avatar-settings-view {
|
&.avatar-settings-view {
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
display: flex;
|
display: block;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
&.spinner-completed {
|
&.spinner-completed {
|
||||||
border: 2px solid $avatar-border-color;
|
border: 2px solid $avatar-border-color;
|
||||||
|
@ -69,6 +67,18 @@
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profile-image {
|
||||||
|
@include respond-to('big') {
|
||||||
|
height: 64px;
|
||||||
|
width: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include respond-to('small') {
|
||||||
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#done {
|
#done {
|
||||||
|
|
|
@ -545,7 +545,7 @@ const ProfileBanner = ({
|
||||||
}: ProfileProps) => (
|
}: ProfileProps) => (
|
||||||
<header id="fxa-settings-profile-header-wrapper">
|
<header id="fxa-settings-profile-header-wrapper">
|
||||||
<div className="avatar-wrapper avatar-settings-view nohover">
|
<div className="avatar-wrapper avatar-settings-view nohover">
|
||||||
<img src={avatar} alt={displayName || email} className="w-16 h-16" />
|
<img src={avatar} alt={displayName || email} className="profile-image" />
|
||||||
</div>
|
</div>
|
||||||
<div id="fxa-settings-profile-header">
|
<div id="fxa-settings-profile-header">
|
||||||
<h1 className="card-header">{displayName ? displayName : email}</h1>
|
<h1 className="card-header">{displayName ? displayName : email}</h1>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче