bvdx
This commit is contained in:
@@ -16822,3 +16822,4 @@ a.lazy-thumb.filtered-upload-ghost:hover::after {
|
|||||||
.edit-mode-active .avatar-image-wrapper .profile-avatar-img:hover {
|
.edit-mode-active .avatar-image-wrapper .profile-avatar-img:hover {
|
||||||
filter: brightness(0.6);
|
filter: brightness(0.6);
|
||||||
}
|
}
|
||||||
|
.edit-mode-active #inline-banner-edit-wrapper { display: block !important; }
|
||||||
|
|||||||
@@ -7409,14 +7409,15 @@ class NotificationSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (userName) {
|
if (userName) {
|
||||||
const userHref = `/user/${userName}`;
|
const lowerHref = `/user/${userName.toLowerCase()}`;
|
||||||
|
const exactHref = `/user/${userName}`;
|
||||||
// Sidebar / thread comment author links
|
// Sidebar / thread comment author links
|
||||||
document.querySelectorAll(`.comment-author[href="${userHref}"]`).forEach(el => {
|
document.querySelectorAll(`.comment-author[href="${lowerHref}"], .comment-author[href="${exactHref}"]`).forEach(el => {
|
||||||
el.textContent = display_name || userName;
|
el.textContent = display_name || userName;
|
||||||
});
|
});
|
||||||
// Item view: the [username] link next to the item ID
|
// Item view: the [username] link next to the item ID
|
||||||
const aUsername = document.getElementById('a_username');
|
const aUsername = document.getElementById('a_username');
|
||||||
if (aUsername && aUsername.getAttribute('href') === userHref) {
|
if (aUsername && (aUsername.getAttribute('href') === lowerHref || aUsername.getAttribute('href') === exactHref)) {
|
||||||
aUsername.textContent = display_name || userName;
|
aUsername.textContent = display_name || userName;
|
||||||
}
|
}
|
||||||
// Grid thumbnails: update data-user attribute (shown as CSS content on hover)
|
// Grid thumbnails: update data-user attribute (shown as CSS content on hover)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="profile-page-wrapper" style="max-width: 800px; margin: 0 auto; width: 100%; padding: 20px 10px; box-sizing: border-box;">
|
<div class="profile-page-wrapper" style="max-width: 800px; margin: 0 auto; width: 100%; padding: 20px 10px; box-sizing: border-box;">
|
||||||
<div class="profile_head" id="live-profile-preview-box" data-banner-user="{{ user.user || '' }}" style="position: relative; @if(user.banner_file && user_banner_enabled) --author-banner: url('/a/{{ user.banner_file }}'); --author-banner-position: {{ user.banner_position === 'center' ? 'center top' : (user.banner_position || 'center top') }}; --author-banner-size: {{ user.banner_size || 'cover' }}; @endif">
|
<div class="profile_head" id="live-profile-preview-box" data-banner-user="{{ user.user || '' }}" style="position: relative; @if(user.banner_file && user_banner_enabled) --author-banner: url('/a/{{ user.banner_file }}'); --author-banner-position: {{ user.banner_position === 'center' ? 'center top' : (user.banner_position || 'center top') }}; --author-banner-size: {{ user.banner_size || 'cover' }}; @endif">
|
||||||
@if(session && session.id === user.user_id && user_banner_enabled)
|
@if(session && session.id === user.user_id && user_banner_enabled)
|
||||||
<div id="inline-banner-edit-wrapper" style="position:absolute; top: 0; right: 5px; z-index: 10;">
|
<div id="inline-banner-edit-wrapper" style="display: none; position:absolute; top: 0; right: 5px; z-index: 10;">
|
||||||
<button id="inline-banner-edit-btn" onclick="const menu = document.getElementById('banner-edit-menu'); menu.style.display = menu.style.display === 'none' ? 'block' : 'none';" style="background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 4px 8px; color: #fff; cursor: pointer; font-size: 0.8em;" title="{{ t('profile.edit_banner', 'Edit Banner') }}">
|
<button id="inline-banner-edit-btn" onclick="const menu = document.getElementById('banner-edit-menu'); menu.style.display = menu.style.display === 'none' ? 'block' : 'none';" style="background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 4px 8px; color: #fff; cursor: pointer; font-size: 0.8em;" title="{{ t('profile.edit_banner', 'Edit Banner') }}">
|
||||||
<i class="fa-solid fa-panorama"></i>
|
<i class="fa-solid fa-panorama"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user