Skip to content

Commit

Permalink
Wrap long message status. Fix #16 and #56
Browse files Browse the repository at this point in the history
  • Loading branch information
ath0mas committed Aug 7, 2016
1 parent c57ed15 commit 204fe8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 3 additions & 4 deletions chrome/Echofon/content/echofon.css
Original file line number Diff line number Diff line change
Expand Up @@ -816,14 +816,13 @@ echofon-dm-thread {

.echofon-status-message {
margin: 0px;
word-wrap: break-word !important;
}

.echofon-status-body {
margin: 0px;
padding: 0px;
font-style: normal;
word-wrap: break-word !important;
word-wrap: break-word;
color: #000;
}

Expand Down Expand Up @@ -893,7 +892,7 @@ profile-tooltip-text {
padding: 0px;
overflow: hidden;
display: -moz-inline-box;
word-wrap: break-word !important;
word-wrap: break-word;
}

echofon-status-tagline,
Expand All @@ -902,7 +901,7 @@ echofon-status-retweet-status {
margin: 0px;
margin-top: 3px;
display: inline-block;
word-wrap: break-word !important;
word-wrap: break-word;
font-style: normal;
}

Expand Down
11 changes: 4 additions & 7 deletions chrome/Echofon/content/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,11 @@ function onresizeWindow()
var w = window.innerWidth - 16;
var elems = contentBox.container.getElementsByClassName('echofon-status-body');

for (var i in elems) {
for (var i = 0; i < elems.length; i++) {
var e = elems[i];
try {
if (e.parentNode && e.parentNode.containerWidth != w) {
e.parentNode.containerWidth = w;
e.style.width = (w - e.parentNode.padding) + "px";
}
}catch (err) {}
if (e.parentNode) {
e.style.width = (w - e.parentNode.padding) + "px";
}
}
var ad = $('echofon-ad');
if (ad) {
Expand Down

0 comments on commit 204fe8a

Please sign in to comment.