Add style to wrap pre tag
At the moment width of pre tag depend on the length of a line in the contents. Therefore, if a line in the contents is too long, layout will be collapsed. I added a style and it was to fit in the area. Change-Id: I2ae833051dbb3e2d552c5fd1d7c6dc43da7aa1f5 Closes-Bug: #1520049
This commit is contained in:
parent
7d70958e8b
commit
04b641c82b
@ -1,5 +1,6 @@
|
||||
{% load i18n %}
|
||||
|
||||
<pre class="data">
|
||||
{{ namespace_contents }}
|
||||
</pre>
|
||||
<div class="pre_scrollable">
|
||||
<pre class="data">{{ namespace_contents }}</pre>
|
||||
</div>
|
||||
|
||||
|
@ -4,4 +4,15 @@
|
||||
.horizontal-center {
|
||||
float: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
// Used to x-scroll to Pre-formatted text.
|
||||
.pre_scrollable {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
||||
pre {
|
||||
word-wrap: normal;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user