From b01d48e76fcff6a8dd1d85284b32c5eef9d010c7 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 18 Jul 2019 20:01:33 +0200 Subject: [PATCH] Add ellipsis --- res/static/style/layout.css | 1 + res/static/style/viewer.css | 1 + 2 files changed, 2 insertions(+) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 880713f..2a49e79 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -312,6 +312,7 @@ pre{ display: inline-block; transition: box-shadow 0.3s, opacity 2s; white-space: normal; + text-overflow: ellipsis; } .file_button:hover, .file_button_selected { diff --git a/res/static/style/viewer.css b/res/static/style/viewer.css index 7555b40..e36dc63 100644 --- a/res/static/style/viewer.css +++ b/res/static/style/viewer.css @@ -45,6 +45,7 @@ body{ overflow: hidden; white-space: nowrap; line-height: 2em; + text-overflow: ellipsis; } .file_viewer > .highlight_headerbar > .button_close_file_viewer { flex-grow: 0;