From 3d64f91a5cb95a17fced556f7e65473f47c84f9b Mon Sep 17 00:00:00 2001 From: Paris Date: Thu, 26 May 2016 11:41:42 +0300 Subject: [PATCH] Properly adjust height of terminal rows and child elements Fix #54 --- src/xterm.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/xterm.css b/src/xterm.css index b0876f2d..7a4246a9 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -2134,3 +2134,19 @@ .terminal .xterm-bg-color-255 { background-color: #eeeeee; } + +/** + * All terminal rows should have explicitly declared height, + * in order to allow child elements to adjust. + */ +.terminal .xterm-rows > div { + line-height: 1.2; +} + +/** + * All styled spans inside terminal lines should be inline-blocks, + * in orde to achieve better height adjustment. + */ +.terminal .xterm-rows span { + display: inline-block; +}