Commit e294fa99 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'vs-wrap-code-lines-blocks-properly' into 'master'

Do not break words in the code blocks under Safari

See merge request gitlab-org/gitlab!55405
parents 4a1faf19 0d1228cc
...@@ -78,6 +78,8 @@ ...@@ -78,6 +78,8 @@
code { code {
font-family: $monospace-font; font-family: $monospace-font;
white-space: pre-wrap; white-space: pre-wrap;
// Safari
word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
word-break: keep-all; word-break: keep-all;
} }
...@@ -344,6 +346,9 @@ ...@@ -344,6 +346,9 @@
// Multi-line code blocks should scroll horizontally // Multi-line code blocks should scroll horizontally
code { code {
white-space: pre; white-space: pre;
// Safari
word-wrap: normal;
overflow-wrap: normal;
} }
&.plain-readme { &.plain-readme {
......
---
title: Do not break word in the code blocks under Safari
merge_request: 55405
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment