fix reset buttons in profile again

This commit is contained in:
Henry Jameson 2022-03-29 19:12:57 +03:00
parent bc029b0fa2
commit 218b15b5fd
2 changed files with 8 additions and 5 deletions

View file

@ -54,16 +54,20 @@
border-radius: var(--tooltipRadius, $fallback--tooltipRadius); border-radius: var(--tooltipRadius, $fallback--tooltipRadius);
background-color: rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0.6);
opacity: 0.7; opacity: 0.7;
color: white;
width: 1.5em; width: 1.5em;
height: 1.5em; height: 1.5em;
text-align: center; text-align: center;
line-height: 1.5em; line-height: 1.5em;
font-size: 1.5em; font-size: 1.5em;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
opacity: 1; opacity: 1;
} }
svg {
color: white;
}
} }
.oauth-tokens { .oauth-tokens {

View file

@ -111,9 +111,9 @@
v-if="!isDefaultAvatar && pickAvatarBtnVisible" v-if="!isDefaultAvatar && pickAvatarBtnVisible"
:title="$t('settings.reset_avatar')" :title="$t('settings.reset_avatar')"
@click="resetAvatar" @click="resetAvatar"
class="button-unstyled reset-button"
> >
<FAIcon <FAIcon
class="reset-button"
icon="times" icon="times"
type="button" type="button"
/> />
@ -141,11 +141,11 @@
<img :src="user.cover_photo"> <img :src="user.cover_photo">
<button <button
v-if="!isDefaultBanner" v-if="!isDefaultBanner"
class="button-unstyled reset-button"
:title="$t('settings.reset_profile_banner')" :title="$t('settings.reset_profile_banner')"
@click="resetBanner" @click="resetBanner"
> >
<FAIcon <FAIcon
class="reset-button"
icon="times" icon="times"
type="button" type="button"
/> />
@ -183,12 +183,11 @@
<img :src="user.background_image"> <img :src="user.background_image">
<button <button
v-if="!isDefaultBackground" v-if="!isDefaultBackground"
class="button-unstyled" class="button-unstyled reset-button"
:title="$t('settings.reset_profile_background')" :title="$t('settings.reset_profile_background')"
@click="resetBackground" @click="resetBackground"
> >
<FAIcon <FAIcon
class="reset-button"
icon="times" icon="times"
type="button" type="button"
/> />