From 8118d56e16d2ab9a2321badffb4ace2d08d5c278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 9 Jul 2016 20:03:41 -0400 Subject: [PATCH] Fix breaking layout when switching portrait/landscape modes This re-adds the table layout in CSS removed in 3cddbbce6eca34843c7cc4b876a9ecb12602672e, https://github.com/thelounge/lounge/pull/332. --- client/css/style.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index c013e6d1..93ca9186 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -713,11 +713,14 @@ button { } #chat .messages { + display: table; + table-layout: fixed; width: 100%; padding: 10px 0; - overflow-wrap: break-word; +} + +#chat .msg { word-wrap: break-word; - word-break: break-word; } #chat .unread-marker { @@ -768,7 +771,7 @@ button { #chat .time { color: #ddd; text-align: right; - width: 46px; + max-width: 46px; min-width: 46px; }