aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorXaver Maierhofer <xaver.maierhofer@xwissen.info>2019-05-14 06:11:22 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-05-14 00:11:22 -0400
commit0e057eb0336629652ae8e661b1bd497007730334 (patch)
treeb65e5eae0500cf9b4afd5ebc45f2e9964acb2921 /public
parent61238407453072f015cc747224468fca5a08bd76 (diff)
downloadgitea-0e057eb0336629652ae8e661b1bd497007730334.tar.gz
gitea-0e057eb0336629652ae8e661b1bd497007730334.zip
Fix plain text overflow line wrap (#6915)
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css1
-rw-r--r--public/less/_repository.less5
2 files changed, 6 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css
index d53d4fb157..47e2519c5b 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -459,6 +459,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
.repository.file.list .non-diff-file-content .view-raw *{max-width:100%}
.repository.file.list .non-diff-file-content .view-raw img{padding:5px 5px 0 5px}
.repository.file.list .non-diff-file-content .plain-text{padding:1em 2em 1em 2em}
+.repository.file.list .non-diff-file-content .plain-text pre{word-break:break-word;white-space:pre-wrap}
.repository.file.list .non-diff-file-content pre{overflow:auto}
.repository.file.list .non-diff-file-content .code-view *{font-size:12px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace;line-height:20px}
.repository.file.list .non-diff-file-content .code-view table{width:100%}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index f063d3b1a3..5970b366e2 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -393,6 +393,11 @@
.plain-text {
padding: 1em 2em 1em 2em;
+
+ pre {
+ word-break: break-word;
+ white-space: pre-wrap;
+ }
}
pre {