From bd702b777f41f83efdfbd4fd09e81b1082e3daae Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 24 Apr 2013 14:00:07 -0400 Subject: [PATCH] Truncate long names in the presence list, rather than scrolling. (imported from commit 6ba1487d5e2d2ac1435248fec5f161deec685180) --- zephyr/static/styles/zephyr.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 4d7e23bc7a..e380adb803 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -176,9 +176,7 @@ a:hover code { } #user_presences { - /* Pad so the bullets are visible */ - padding-left: 20px; - + list-style-position: inside; /* Draw the bullets inside our box */ margin-top: 1em; margin-left: 0; overflow-y: hidden; @@ -187,6 +185,12 @@ a:hover code { overflow-y: auto; } +#user_presences li { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + #user_presences li.user_active { list-style-image: url(/static/images/presence/user-active.png); }