]> jfr.im git - irc/rizon/qchat.git/commitdiff
fix topic wrapping
authorChris Porter <redacted>
Mon, 25 Aug 2014 01:06:28 +0000 (02:06 +0100)
committerChris Porter <redacted>
Mon, 25 Aug 2014 01:06:28 +0000 (02:06 +0100)
css/qui.mcss
js/ui/frontends/qui.js

index c25d1a217bcb7e446ef46ab40cb07ed80ee8d27f..be5db0c475e963c2f04d14e88d8c1c03c45aee42 100644 (file)
@@ -130,6 +130,9 @@ html {
   right: 0px;
   background-color: $(topic_background);
   border-bottom: 1px dashed $(topic_border);
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
 }
 
 .qwebirc-qui .topic .emptytopic {
index 5d82ffc98bfb92800dafd1bc5dfc18b16ead2221..615e0895056e3ac6cb7bf604c2fb306b0ebb87c2 100644 (file)
@@ -345,6 +345,7 @@ qwebirc.ui.QUI.JSUI = new Class({
     left.setStyle("top", topsize.y);
     topic.setStyle("top", topsize.y);
     topic.setStyle("left", leftsize.x);
+    topic.setStyle("width", docsize.x - leftsize.x);
     
     middle.setStyle("top", (topsize.y + topicsize.y));
     middle.setStyle("left", leftsize.x);