aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/twsidebar.tw
diff options
context:
space:
mode:
Diffstat (limited to 'twittperator/twsidebar.tw')
-rw-r--r--twittperator/twsidebar.tw5
1 files changed, 2 insertions, 3 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index 13f5b06..09e3a65 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -126,8 +126,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let xml;
let sbWidth = getSidebarWindow().document.width;
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
- if (t.protected)
- richlistitemClasses.push(className('tweet-protected'));
+ let nameClass = t.protected ? className('tweet-protected') : '';
xml =
<richlistitem
class={richlistitemClasses.join(' ')}
@@ -142,7 +141,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
</vbox>
<vbox style={"width: " + (sbWidth - 48 - 35) + "px !important"}>
<hbox>
- <label style="font-weight: bold">{escapeBreakers(t.name)}</label>
+ <label class={nameClass} style="font-weight: bold">{escapeBreakers(t.name)}</label>
<spacer flex="1"/>
<label>{t.sub || ''}</label>
</hbox>