Commit 0765a6e5 by Bence Dányi

webui: trim vm names only if necessary

fixes #102
parent bc677046
......@@ -168,11 +168,18 @@
.actions {
display: block;
}
.name .details {
display: inline;
.name {
width: calc(~"100% - 200px");
span {
width: calc(~"60% + 95px");
max-width: calc(~"100% - 95px");
}
.details {
display: block;
border: none;
}
}
}
.id {
float: right;
......@@ -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