Skip to content

Commit 0e057eb

Browse files
xf-techknowlogick
authored andcommitted
Fix plain text overflow line wrap (#6915)
1 parent 6123840 commit 0e057eb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

public/css/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
459459
.repository.file.list .non-diff-file-content .view-raw *{max-width:100%}
460460
.repository.file.list .non-diff-file-content .view-raw img{padding:5px 5px 0 5px}
461461
.repository.file.list .non-diff-file-content .plain-text{padding:1em 2em 1em 2em}
462+
.repository.file.list .non-diff-file-content .plain-text pre{word-break:break-word;white-space:pre-wrap}
462463
.repository.file.list .non-diff-file-content pre{overflow:auto}
463464
.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}
464465
.repository.file.list .non-diff-file-content .code-view table{width:100%}

public/less/_repository.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@
393393

394394
.plain-text {
395395
padding: 1em 2em 1em 2em;
396+
397+
pre {
398+
word-break: break-word;
399+
white-space: pre-wrap;
400+
}
396401
}
397402

398403
pre {

0 commit comments

Comments
 (0)