better layout & wording
This commit is contained in:
parent
184f1cdc24
commit
3311c676ad
5 changed files with 62 additions and 43 deletions
|
|
@ -1,4 +1,18 @@
|
||||||
.profile-tab {
|
.profile-tab {
|
||||||
|
// overriding global for better look
|
||||||
|
div.profile-edit {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-card {
|
||||||
|
padding: 1.2em;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.bio {
|
.bio {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="profile-tab">
|
<div class="profile-tab">
|
||||||
|
<div class="setting-item profile-edit">
|
||||||
|
<h2>{{ $t('settings.account_profile_edit') }}</h2>
|
||||||
<UserCard
|
<UserCard
|
||||||
:user-id="user.id"
|
:user-id="user.id"
|
||||||
:editable="true"
|
:editable="true"
|
||||||
|
|
@ -7,6 +9,7 @@
|
||||||
rounded="top"
|
rounded="top"
|
||||||
>
|
>
|
||||||
</UserCard>
|
</UserCard>
|
||||||
|
</div>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{ $t('settings.account_privacy') }}</h2>
|
<h2>{{ $t('settings.account_privacy') }}</h2>
|
||||||
<ul class="setting-list">
|
<ul class="setting-list">
|
||||||
|
|
|
||||||
|
|
@ -426,6 +426,7 @@
|
||||||
|
|
||||||
.user-profile-fields {
|
.user-profile-fields {
|
||||||
margin: 0 0.5em;
|
margin: 0 0.5em;
|
||||||
|
padding: 0 0.5em;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -330,41 +330,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="editable">
|
|
||||||
<h3>{{ $t('settings.user_preferences') }}</h3>
|
|
||||||
<p
|
|
||||||
v-if="role === 'admin' || role === 'moderator'"
|
|
||||||
class="user-card-setting"
|
|
||||||
>
|
|
||||||
<Checkbox v-model="newShowRole">
|
|
||||||
<template v-if="role === 'admin'">
|
|
||||||
{{ $t('settings.show_admin_badge') }}
|
|
||||||
</template>
|
|
||||||
<template v-if="role === 'moderator'">
|
|
||||||
{{ $t('settings.show_moderator_badge') }}
|
|
||||||
</template>
|
|
||||||
</Checkbox>
|
|
||||||
</p>
|
|
||||||
<p class="user-card-setting">
|
|
||||||
<label>
|
|
||||||
{{ $t('settings.actor_type') }}
|
|
||||||
<Select v-model="newActorType">
|
|
||||||
<option
|
|
||||||
v-for="option in availableActorTypes"
|
|
||||||
:key="option"
|
|
||||||
:value="option"
|
|
||||||
>
|
|
||||||
{{ $t('settings.actor_type_' + (option === 'Person' ? 'person_proper' : option)) }}
|
|
||||||
</option>
|
|
||||||
</Select>
|
|
||||||
<div v-if="groupActorAvailable">
|
|
||||||
<small>
|
|
||||||
{{ $t('settings.actor_type_description') }}
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
<div
|
<div
|
||||||
v-if="!editable && loggedIn && isOtherUser && (hasNote || !hideBio) && !mergedConfig.userCardHidePersonalMarks"
|
v-if="!editable && loggedIn && isOtherUser && (hasNote || !hideBio) && !mergedConfig.userCardHidePersonalMarks"
|
||||||
class="personal-marks"
|
class="personal-marks"
|
||||||
|
|
@ -646,6 +611,41 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
<template v-if="editable">
|
||||||
|
<h3>{{ $t('settings.profile_other') }}</h3>
|
||||||
|
<p
|
||||||
|
v-if="role === 'admin' || role === 'moderator'"
|
||||||
|
class="user-card-setting"
|
||||||
|
>
|
||||||
|
<Checkbox v-model="newShowRole">
|
||||||
|
<template v-if="role === 'admin'">
|
||||||
|
{{ $t('settings.show_admin_badge') }}
|
||||||
|
</template>
|
||||||
|
<template v-if="role === 'moderator'">
|
||||||
|
{{ $t('settings.show_moderator_badge') }}
|
||||||
|
</template>
|
||||||
|
</Checkbox>
|
||||||
|
</p>
|
||||||
|
<p class="user-card-setting">
|
||||||
|
<label>
|
||||||
|
{{ $t('settings.actor_type') }}
|
||||||
|
<Select v-model="newActorType">
|
||||||
|
<option
|
||||||
|
v-for="option in availableActorTypes"
|
||||||
|
:key="option"
|
||||||
|
:value="option"
|
||||||
|
>
|
||||||
|
{{ $t('settings.actor_type_' + (option === 'Person' ? 'person_proper' : option)) }}
|
||||||
|
</option>
|
||||||
|
</Select>
|
||||||
|
<div v-if="groupActorAvailable">
|
||||||
|
<small>
|
||||||
|
{{ $t('settings.actor_type_description') }}
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
<teleport to="#modal">
|
<teleport to="#modal">
|
||||||
<UserTimedFilterModal
|
<UserTimedFilterModal
|
||||||
ref="timedMuteDialog"
|
ref="timedMuteDialog"
|
||||||
|
|
|
||||||
|
|
@ -493,7 +493,7 @@
|
||||||
"avatarRadius": "Avatars",
|
"avatarRadius": "Avatars",
|
||||||
"background": "Background",
|
"background": "Background",
|
||||||
"bio": "Bio",
|
"bio": "Bio",
|
||||||
"user_preferences": "Profile settings",
|
"profile_other": "Other",
|
||||||
"email_language": "Language for receiving emails from the server",
|
"email_language": "Language for receiving emails from the server",
|
||||||
"block_export": "Block export",
|
"block_export": "Block export",
|
||||||
"block_export_button": "Export your blocks to a csv file",
|
"block_export_button": "Export your blocks to a csv file",
|
||||||
|
|
@ -664,6 +664,7 @@
|
||||||
"label": "Birthday",
|
"label": "Birthday",
|
||||||
"show_birthday": "Show my birthday"
|
"show_birthday": "Show my birthday"
|
||||||
},
|
},
|
||||||
|
"account_profile_edit": "Edit Profile",
|
||||||
"account_privacy": "Privacy",
|
"account_privacy": "Privacy",
|
||||||
"use_contain_fit": "Don't crop the attachment in thumbnails",
|
"use_contain_fit": "Don't crop the attachment in thumbnails",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue