aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator
diff options
context:
space:
mode:
authoranekos2013-01-20 00:14:36 +0900
committeranekos2013-01-20 00:14:36 +0900
commit5f9f8b699331135b9cd54c95bcb5595bfd1fc650 (patch)
tree357fa8be648f8eae42d4fa4e4adbad2055066dc9 /twittperator
parent7c95e94a0037da2098c173bae2972ea230212cb3 (diff)
downloadvimperator-plugins-5f9f8b699331135b9cd54c95bcb5595bfd1fc650.tar.bz2
サブ表示を下にして、改行するようにした。
Diffstat (limited to 'twittperator')
-rw-r--r--twittperator/twsidebar.tw7
-rw-r--r--twittperator/twsidebar/chrome/content/twsidebar.css13
2 files changed, 17 insertions, 3 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index fccdfa6..8a7187e 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -129,7 +129,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let xml;
let sbWidth = getSidebarWindow().document.width;
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
- let nameClass = t.protected ? className('tweet-protected') : '';
+ let nameClass = className('item-name') + ' ' + (t.protected ? className('tweet-protected') : '');
xml =
<richlistitem
id={t.id}
@@ -145,11 +145,12 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
</vbox>
<vbox flex="1">
<hbox flex="1">
- <label class={nameClass} style="font-weight: bold">{escapeBreakers(t.name)}</label>
+ <label class={nameClass}>{escapeBreakers(t.name)}</label>
<spacer flex="1"/>
{(Config.tweetTimeVisible && t.sub) ? t.sub : ''}
</hbox>
- <description flex="1" style="word-break:break-all;">{escapeBreakers(t.text)}</description>
+ <description flex="1" class={className('item-text')}>{escapeBreakers(t.text)}</description>
+ <description flex="1" class={className('item-sub')}>{escapeBreakers(t.sub || '')}</description>
</vbox>
</hbox>
</richlistitem>;
diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css
index 7081ea2..72755a4 100644
--- a/twittperator/twsidebar/chrome/content/twsidebar.css
+++ b/twittperator/twsidebar/chrome/content/twsidebar.css
@@ -52,3 +52,16 @@
.tw-anekos-sb-plugin-tweet-follow-my {
background-color: lightsalmon !important;
}
+
+.tw-anekos-sb-plugin-item-name {
+ font-weight: bold;
+}
+
+.tw-anekos-sb-plugin-item-sub {
+ font-size: 80%;
+}
+
+.tw-anekos-sb-plugin-item-text {
+ word-break: break-all;
+}
+