hgdf
This commit is contained in:
@@ -3131,7 +3131,7 @@ body.layout-legacy .scroll-to-bottom svg {
|
||||
background-position: var(--author-banner-position, center top);
|
||||
background-size: var(--author-banner-size, 100% auto);
|
||||
background-repeat: var(--author-banner-repeat, no-repeat);
|
||||
opacity: var(--author-banner-opacity, 0.25);
|
||||
opacity: var(--author-banner-opacity, 0.08);
|
||||
z-index: 0;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
|
||||
@@ -550,8 +550,16 @@
|
||||
|
||||
|
||||
const bannerEnabled = window.f0ckCommentBannerEnabled !== false && window.f0ckSession?.comment_banner_enabled !== false;
|
||||
const bannerStyle = (bannerEnabled && c.banner_file && c.banner_file !== 'null')
|
||||
? `style="--author-banner: url('/a/${c.banner_file}'); --author-banner-position: ${c.banner_position === 'center' ? 'center top' : (c.banner_position || 'center top')}; --author-banner-size: ${(c.banner_size && c.banner_size !== 'cover') ? c.banner_size : '100% auto'}; --author-banner-repeat: no-repeat;"`
|
||||
let bannerFile = c.banner_file;
|
||||
let bannerPos = c.banner_position;
|
||||
let bannerSz = c.banner_size;
|
||||
if (!bannerFile && window.f0ckSession && window.f0ckSession.id && (c.user_id === window.f0ckSession.id || c.username === window.f0ckSession.user)) {
|
||||
bannerFile = window.f0ckSession.banner_file;
|
||||
bannerPos = window.f0ckSession.banner_position;
|
||||
bannerSz = window.f0ckSession.banner_size;
|
||||
}
|
||||
const bannerStyle = (bannerEnabled && bannerFile && bannerFile !== 'null')
|
||||
? `style="--author-banner: url('/a/${bannerFile}'); --author-banner-position: ${bannerPos === 'center' ? 'center top' : (bannerPos || 'center top')}; --author-banner-size: ${(bannerSz && bannerSz !== 'cover') ? bannerSz : '100% auto'}; --author-banner-repeat: no-repeat;"`
|
||||
: '';
|
||||
|
||||
return `
|
||||
|
||||
Reference in New Issue
Block a user