This commit is contained in:
2026-08-19 23:01:06 +02:00
parent 3359e9f0d8
commit 11a4535ca9
5 changed files with 69 additions and 13 deletions

View File

@@ -549,8 +549,13 @@
}
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;"`
: '';
return `
<div class="comment" id="sc${c.id}">
<div class="comment" id="sc${c.id}" ${bannerStyle}>
<div class="comment-body">
<div class="comment-header">
<div class="comment-header-left">