Skip to content

Commit

Permalink
Prevent table data elements from wrapping text.
Browse files Browse the repository at this point in the history
  * Fixes bug 964738

Change-Id: Ib6b7afeb3c11717a0ed9d1bd0f066ce805d6db26
  • Loading branch information
jakedahn authored and treshenry committed Apr 3, 2012
1 parent a0805e3 commit 44a4287
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions horizon/dashboards/syspanel/instances/tables.py
Expand Up @@ -56,12 +56,16 @@ class SyspanelInstancesTable(tables.DataTable):
# techniques isn't practical. It can be added back in when we have names
# returned in a practical manner by the API.
#user = tables.Column("user_id", verbose_name=_("User"))
host = tables.Column("OS-EXT-SRV-ATTR:host", verbose_name=_("Host"))
host = tables.Column("OS-EXT-SRV-ATTR:host",
verbose_name=_("Host"),
classes=('nowrap-col',))
name = tables.Column("name", link="horizon:nova:instances_and_volumes:" \
"instances:detail",
verbose_name=_("Instance Name"))
ip = tables.Column(get_ips, verbose_name=_("IP Address"))
size = tables.Column(get_size, verbose_name=_("Size"))
size = tables.Column(get_size,
verbose_name=_("Size"),
classes=('nowrap-col',))
status = tables.Column("status",
filters=(title,),
verbose_name=_("Status"),
Expand Down
4 changes: 4 additions & 0 deletions openstack_dashboard/static/dashboard/css/style.css
Expand Up @@ -510,6 +510,10 @@ table form {
background-color: #ffffc6;
}

.nowrap-col {
white-space: nowrap;
}

.icon-updating.ajax-updating {
background: transparent url(../img/spinner.gif) no-repeat center center;
padding: 1px;
Expand Down

0 comments on commit 44a4287

Please sign in to comment.