From ef597cd8f399d99c3451827db6aa94ea73275a77 Mon Sep 17 00:00:00 2001 From: xaver Date: Mon, 19 Mar 2012 12:01:35 +0000 Subject: [PATCH] cut long text in lists with css and show ... + fix for combobox icon position if no space --- interface/web/themes/default/css/screen/content.css | 3 ++- interface/web/themes/default_combobox/css/additional.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/web/themes/default/css/screen/content.css b/interface/web/themes/default/css/screen/content.css index 2a11f2d31..c11d11544 100644 --- a/interface/web/themes/default/css/screen/content.css +++ b/interface/web/themes/default/css/screen/content.css @@ -174,7 +174,8 @@ table { width: auto; border-collapse:collapse; margin-bottom: 0.5em; } table.full { width: 100%; } table.fixed { table-layout:fixed } - + + table.list td{max-width: 350px;min-width: px;overflow:hidden;text-overflow: ellipsis; -o-text-overflow: ellipsis; -icab-text-overflow: ellipsis; -khtml-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis;} th,td { padding: 0.5em;text-align:left; } thead th { background: #444 url(../../images/lists_thead_bg.png) repeat-x; color: #fff } tbody th { background: #ccc; color: #333 } diff --git a/interface/web/themes/default_combobox/css/additional.css b/interface/web/themes/default_combobox/css/additional.css index c84cace8c..a0db2f6b5 100644 --- a/interface/web/themes/default_combobox/css/additional.css +++ b/interface/web/themes/default_combobox/css/additional.css @@ -1,4 +1,4 @@ -table.list td {min-width:32px} +.list .ui-widget{position:absolute} /* * jQuery UI CSS Framework 1.8.16 -- GitLab