From b45de686a29b371853093da4e0e4b3b87f7ebe5a Mon Sep 17 00:00:00 2001 From: pengyuesheng <pengyuesheng@gohighsec.com> Date: Mon, 18 Feb 2019 10:31:01 +0800 Subject: [PATCH] Add <span class='word-wrap'> On the instance page, if the instance flavor name is too long, it will exceed the scope of the instance flavor details modal box. Change-Id: I672e2ca9c3fa099acaa9b5a1a70628a28fd3f135 Closes-Bug: #1816333 --- .../project/instances/templates/instances/_instance_flavor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html index 476ef8c3e0..341376ca86 100644 --- a/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html +++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_instance_flavor.html @@ -6,7 +6,7 @@ <tr><th>{% trans 'RAM' %}</th><td>{{ size_ram }}</td></tr> <tr><th>{% trans 'Size' %}</th><td>{{ size_disk }}</td></tr> </table> -" data-original-title="{% blocktrans %}Flavor Details: {{ name }}">{{ name }}{% endblocktrans %}</a> +" data-original-title="{% blocktrans %}<span class='word-wrap'>Flavor Details: {{ name }}</span>">{{ name }}{% endblocktrans %}</a> <script type="text/javascript" charset="utf-8"> $(function () { var $flavor = $("#flavor_details_{{ id }}");