Commit 0765a6e5 by Bence Dányi

webui: trim vm names only if necessary

fixes #102
parent bc677046
......@@ -168,9 +168,16 @@
.actions {
display: block;
}
.name .details {
display: inline;
border: none;
.name {
width: calc(~"100% - 200px");
span {
width: calc(~"60% + 95px");
max-width: calc(~"100% - 95px");
}
.details {
display: block;
border: none;
}
}
}
......@@ -186,11 +193,20 @@
z-index: 2;
position: relative;
height: 24px;
width: calc(~"100% - 90px");
span {
float: left;
text-overflow: ellipsis;
display: block;
white-space: nowrap;
overflow: hidden;
}
&.filetype-new-folder {
float: left;
}
.details {
display: none;
float: right;
}
}
.status {
......
......@@ -11,7 +11,7 @@
{% block name %}
<div class="name {% if vm.state == 'ACTIVE' %}vm-on{% else %}vm-off{% endif %}">
<span id="vm-{{vm.id}}-name">{{vm.name|truncatechars:20}}</span>
<span id="vm-{{vm.id}}-name">{{vm.name}}</span>
<small id="vm-{{vm.id}}-name-details" class="details">
(<a href="{{ vm.get_absolute_url }}" title="{{vm.name}}">{% trans "More details" %}</a>)
</small>
......
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 sign in to comment