requested options

This commit is contained in:
Henry Jameson 2025-07-30 01:13:24 +03:00
commit 9e77071e77
5 changed files with 28 additions and 1 deletions

View file

@ -69,6 +69,22 @@
{{ $t('settings.user_popover_avatar_overlay') }} {{ $t('settings.user_popover_avatar_overlay') }}
</BooleanSetting> </BooleanSetting>
</li> </li>
<li>
<BooleanSetting
path="userCardLeftJustify"
expert="1"
>
{{ $t('settings.user_card_left_justify') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="userCardHidePersonalMarks"
expert="1"
>
{{ $t('settings.user_card_hide_personal_marks') }}
</BooleanSetting>
</li>
<li> <li>
<BooleanSetting <BooleanSetting
path="alwaysShowNewPostButton" path="alwaysShowNewPostButton"

View file

@ -6,6 +6,12 @@
padding-bottom: 0; padding-bottom: 0;
} }
.user-card-bio {
&.-justify-left {
text-align: start;
}
}
&:hover { &:hover {
--_still-image-img-visibility: visible; --_still-image-img-visibility: visible;
--_still-image-canvas-visibility: hidden; --_still-image-canvas-visibility: hidden;

View file

@ -236,7 +236,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="personal-marks" v-if="loggedIn && isOtherUser && (hasNote || !hideBio)"> <div class="personal-marks" v-if="loggedIn && isOtherUser && (hasNote || !hideBio) && !mergedConfig.userCardHidePersonalMarks">
<UserNote <UserNote
v-if="hasNote || (hasNoteEditor && supportsNote)" v-if="hasNote || (hasNoteEditor && supportsNote)"
:user="user" :user="user"
@ -281,6 +281,7 @@
<RichContent <RichContent
v-if="!hideBio" v-if="!hideBio"
class="user-card-bio" class="user-card-bio"
:class="{ '-justify-left': mergedConfig.userCardLeftJustify }"
:html="user.description_html" :html="user.description_html"
:emoji="user.emoji" :emoji="user.emoji"
:handle-links="true" :handle-links="true"

View file

@ -797,6 +797,8 @@
"user_popover_avatar_action_close": "Close the popover", "user_popover_avatar_action_close": "Close the popover",
"user_popover_avatar_action_open": "Open profile", "user_popover_avatar_action_open": "Open profile",
"user_popover_avatar_overlay": "Show user popover over user avatar", "user_popover_avatar_overlay": "Show user popover over user avatar",
"user_card_left_justify": "Justify user bio to the left",
"user_card_hide_personal_marks": "Hide personal marks (highlight/note) in user profiles",
"fun": "Fun", "fun": "Fun",
"greentext": "Meme arrows", "greentext": "Meme arrows",
"show_yous": "Show (You)s", "show_yous": "Show (You)s",

View file

@ -126,6 +126,8 @@ export const defaultState = {
showScrollbars: false, showScrollbars: false,
userPopoverAvatarAction: 'open', userPopoverAvatarAction: 'open',
userPopoverOverlay: false, userPopoverOverlay: false,
userCardLeftJustify: false,
userCardHidePersonalMarks: false,
sidebarColumnWidth: '25rem', sidebarColumnWidth: '25rem',
contentColumnWidth: '45rem', contentColumnWidth: '45rem',
notifsColumnWidth: '25rem', notifsColumnWidth: '25rem',