From b1f1e704488e7c886805453666652b8ff1e68ec3 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 15 Oct 2011 02:59:44 +0200 Subject: [PATCH] Ellipsis text-overflow, use max-width (too empty otherwise), smaller max-width (that was really HUGE). --- 4chan_x.user.js | 7 ++++--- script.coffee | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 5a29f9d0b..3e674a0d6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3244,13 +3244,14 @@ \ #watcher {\ position: absolute;\ - width: 250px;\ - overflow: hidden;\ - white-space: nowrap;\ }\ #watcher > div {\ + overflow: hidden;\ padding-right: 5px;\ padding-left: 5px;\ + text-overflow: ellipsis;\ + max-width: 200px;\ + white-space: nowrap;\ }\ #watcher > div.move {\ text-decoration: underline;\ diff --git a/script.coffee b/script.coffee index 1d3e40b01..e13e34908 100644 --- a/script.coffee +++ b/script.coffee @@ -2505,13 +2505,14 @@ Main = #watcher { position: absolute; - width: 250px; - overflow: hidden; - white-space: nowrap; } #watcher > div { + overflow: hidden; padding-right: 5px; padding-left: 5px; + text-overflow: ellipsis; + max-width: 200px; + white-space: nowrap; } #watcher > div.move { text-decoration: underline;