Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
14e78ecb
Commit
14e78ecb
authored
9 years ago
by
Rodrigo Gomes da Silva
Browse files
Options
Downloads
Patches
Plain Diff
Issue #616 - Fixed multiline code block overflow
parent
4342792a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/stylesheets/base.less
+4
-8
4 additions, 8 deletions
client/stylesheets/base.less
packages/rocketchat-highlight/highlight.coffee
+1
-1
1 addition, 1 deletion
packages/rocketchat-highlight/highlight.coffee
with
5 additions
and
9 deletions
client/stylesheets/base.less
+
4
−
8
View file @
14e78ecb
...
...
@@ -57,6 +57,10 @@ code {
}
}
code.hljs {
overflow-y: hidden;
}
pre {
display: inline-block;
width: 100%;
...
...
@@ -3978,11 +3982,3 @@ a.github-fork {
margin-bottom: 10px;
}
}
.hljs2 {
display: block;
padding: 0.5em;
color: #333;
background: #f8f8f8;
-webkit-text-size-adjust: none;
}
This diff is collapsed.
Click to expand it.
packages/rocketchat-highlight/highlight.coffee
+
1
−
1
View file @
14e78ecb
...
...
@@ -40,7 +40,7 @@ class Highlight
result
=
hljs
.
highlightAuto
code
else
result
=
hljs
.
highlight
lang
,
code
msgParts
[
index
]
=
"<pre><code class='hljs
2
"
+
result
.
language
+
"'><span class='copyonly'>```<br></span>"
+
result
.
value
+
"<span class='copyonly'><br>```</span></code></pre>"
msgParts
[
index
]
=
"<pre><code class='hljs "
+
result
.
language
+
"'><span class='copyonly'>```<br></span>"
+
result
.
value
+
"<span class='copyonly'><br>```</span></code></pre>"
else
msgParts
[
index
]
=
part
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment