aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2013-01-18 08:54:50 -0800
committeranekos2013-01-18 08:54:50 -0800
commit7c95e94a0037da2098c173bae2972ea230212cb3 (patch)
treec376eb2c7eb4ee9f3c2d0a81bcf7e1c7355ffc80
parentae78ac575454e229e842729bcc2fe210cbb6d395 (diff)
parent8f936fc555dd20f2c61f54b40e79b97a5ed201e4 (diff)
downloadvimperator-plugins-7c95e94a0037da2098c173bae2972ea230212cb3.tar.bz2
Merge pull request #28 from cd01/work
Fix tweet width in twsidebar
-rw-r--r--twittperator/twsidebar.tw15
1 files changed, 9 insertions, 6 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index f0c0cba..fccdfa6 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -56,6 +56,9 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
// サイドバーが閉じていても、こっそり開始しておく
silentStart: false,
+ // 時間とかRTした人のIDとかの表示
+ tweetTimeVisible: false,
+
// 配列かオブジェクトを返すと、変更できる。
// 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。
modifier: function (msg, tab, streamName) {
@@ -136,17 +139,17 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
"width: " + px(sbWidth - 100) + ' !important'
].join(';')}
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
- <hbox>
- <vbox>
+ <hbox flex="1">
+ <vbox width="48">
<image src={t.img} height="48" width="48" />
</vbox>
- <vbox style={"width: " + (sbWidth - 48 - 35) + "px !important"}>
- <hbox>
+ <vbox flex="1">
+ <hbox flex="1">
<label class={nameClass} style="font-weight: bold">{escapeBreakers(t.name)}</label>
<spacer flex="1"/>
- <label>{t.sub || ''}</label>
+ {(Config.tweetTimeVisible && t.sub) ? t.sub : ''}
</hbox>
- <description width="100%">{escapeBreakers(t.text)}</description>
+ <description flex="1" style="word-break:break-all;">{escapeBreakers(t.text)}</description>
</vbox>
</hbox>
</richlistitem>;