From cf12f1580d4ddc491a53927e7adf1a94df6e2e05 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Wed, 20 Jul 2016 16:26:03 +0200
Subject: Allow to wrap long words in the chat view

This prevents horizontal overflow in case of long URLs.

Test-Information:

Tested with multiple MUC rooms with lots of URL messages.
Tested on OS X 10.11.5 with Qt 5.5.1.

Change-Id: I66c1786bb23c23b2379dc15e1bef6fff3f85f150

diff --git a/Swift/resources/themes/Default/main.css b/Swift/resources/themes/Default/main.css
index 68406ea..35b55c7 100644
--- a/Swift/resources/themes/Default/main.css
+++ b/Swift/resources/themes/Default/main.css
@@ -220,10 +220,11 @@ body {
     font-size: 14px;
     color: #595959;
     vertical-align: top;
-}
 
-.text a {
-    word-break: break-all; /* Break long URLs at any point. */
+    /* Break long URLs at any point. */
+    word-break: break-word;
+    word-wrap: break-word;
+    hyphens: auto;
 }
 
 .username {
-- 
cgit v0.10.2-6-g49f6