We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba171ff commit 086ac0eCopy full SHA for 086ac0e
1 file changed
packages/comment-widget/src/base-comment-item.ts
@@ -72,16 +72,13 @@ export class BaseCommentItem extends LitElement {
72
`
73
)}
74
75
-
76
- ${
77
- this.private && this.configMapData?.basic.showPrivateCommentBadge
78
- ? html`
79
- <div class="inline-flex items-center gap-1 bg-muted-3 rounded-base px-1.5 py-1">
+ ${when(
+ this.private && this.configMapData?.basic.showPrivateCommentBadge,
+ () => html`<div class="inline-flex items-center gap-1 bg-muted-3 rounded-base px-1.5 py-1">
80
<i class="i-ri-git-repository-private-line opacity-90 size-3" aria-hidden="true"></i>
81
<span class="text-xs text-text-2">${msg('Private')}</span>
82
</div>`
83
- : ''
84
- }
+ )}
85
86
${when(this.ua && this.configMapData?.basic.showCommenterDevice, () => html`<commenter-ua-bar .ua=${this.ua}></commenter-ua-bar>`)}
87
0 commit comments