mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-13 01:59:41 +00:00
FIX: Prevent long text breaking out of changelog popover
Might even be nicely hypenated on some platforms... Closes #259
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -65,6 +65,15 @@ textarea {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dont-break-out {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
-moz-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
z-index: inherit; // bug fix introduced in 52682ce
|
z-index: inherit; // bug fix introduced in 52682ce
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
{% for change in itemChange.field_changes %}
|
{% for change in itemChange.field_changes %}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<h4 class="list-group-item-heading">{{ change.field.verbose_name }}</h4>
|
<h4 class="list-group-item-heading">{{ change.field.verbose_name }}</h4>
|
||||||
{% include "RIGS/version_changes_change.html" %}
|
<div class="dont-break-out">{% include "RIGS/version_changes_change.html" %}</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
{% if change.linebreaks and change.new and change.old %}
|
{% if change.linebreaks and change.new and change.old %}
|
||||||
{% for diff in change.diff %}
|
{% for diff in change.diff %}
|
||||||
{% if diff.type == "insert" %}
|
{% if diff.type == "insert" %}
|
||||||
<ins>{{ diff.text|linebreaksbr }}</ins>
|
<ins class="dont-break-out">{{ diff.text|linebreaksbr }}</ins>
|
||||||
{% elif diff.type == "delete" %}
|
{% elif diff.type == "delete" %}
|
||||||
<del>{{diff.text|linebreaksbr}}</del>
|
<del class="dont-break-out">{{diff.text|linebreaksbr}}</del>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>{{diff.text|linebreaksbr}}</span>
|
<span class="dont-break-out">{{diff.text|linebreaksbr}}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user