From 3d343eb91d1281acf6f5bdff5f8278a0dd4986b4 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 3 Oct 2019 18:27:48 -0500 Subject: [PATCH] Prevent pre tags from wrapping. Issue #1089 --- Mac/MainWindow/Detail/styleSheet.css | 13 ++++++++++--- iOS/Resources/styleSheet.css | 15 ++++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Mac/MainWindow/Detail/styleSheet.css b/Mac/MainWindow/Detail/styleSheet.css index 380633ce4..5af5f19f5 100644 --- a/Mac/MainWindow/Detail/styleSheet.css +++ b/Mac/MainWindow/Detail/styleSheet.css @@ -115,12 +115,19 @@ h1 { line-height: 1.15em; font-weight: bold; } +pre { + max-width: 100%; + margin: 0; + overflow: auto; + overflow-y: hidden; + line-height: 20px; + border: 1px solid #777; + word-wrap: normal; +} code, pre { font-family: "SF Mono", Menlo, "Courier New", Courier, monospace; font-size: 14px; -} -pre { - white-space: pre-wrap; + padding: 10px; } img, figure, video, iframe, div { max-width: 100%; diff --git a/iOS/Resources/styleSheet.css b/iOS/Resources/styleSheet.css index d6d61b7ae..ac134ecac 100644 --- a/iOS/Resources/styleSheet.css +++ b/iOS/Resources/styleSheet.css @@ -114,12 +114,21 @@ h1 { line-height: 1.15em; font-weight: bold; } +pre { + max-width: 100%; + margin: 0; + overflow: auto; + overflow-y: hidden; + line-height: 20px; + border: 1px solid #777; + word-wrap: normal; + word-break: normal; + -webkit-hyphens: none; +} code, pre { font-family: "SF Mono", Menlo, "Courier New", Courier, monospace; font-size: 14px; -} -pre { - white-space: pre-wrap; + padding: 5px; } img, figure, video, iframe, div { max-width: 100%;