diff --git a/src/ajax.js b/src/ajax.js index cb5f30e..391928d 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -968,7 +968,7 @@ function loadLists(onInit) $.each(json.list, function(i,item){ item.i = i; tabLists[i] = item; - ti += '
  • '+item.name+'
  • '; + ti += '
  • '+item.name+'
  • '; }); if(!curList) { $('#lists .mtt-htabs').children().removeClass('invisible'); @@ -1003,7 +1003,7 @@ function addList() var i = tabLists.length; item.i = i; tabLists[i] = item; - if(i > 0) $('#lists>ul>li.mtt-tabs-button').before('
  • '+item.name+'
  • ') ; + if(i > 0) $('#lists>ul>li.mtt-tabs-button').before('
  • '+item.name+'
  • ') ; else loadLists(); }, 'json'); } @@ -1022,7 +1022,7 @@ function renameCurList() item.i = curList.i; tabLists[curList.i] = item; curList = item; - $('#lists>ul>.mtt-tabs-selected>a').html(item.name); + $('#lists>ul>.mtt-tabs-selected>a').attr('title', item.name).html(item.name); }, 'json'); } diff --git a/src/style.css b/src/style.css index 9b34d06..f9fcc3a 100644 --- a/src/style.css +++ b/src/style.css @@ -24,15 +24,14 @@ a { color:#0000ff; } #authform div.h { font-weight:bold; } .mtt-tabs ul { list-style: none; padding:0; margin:0; } -.mtt-tabs ul li { margin:0; font-size: 9pt; font-weight:bold; float: left; width:89px; text-align:center; margin-right:3px; border-left:1px solid #ededed; } -.mtt-tabs ul a { margin:0px; text-decoration: none; color:#444444; display: block; height:21px; width: 100%; padding-top: 6px; outline:none; background:url(images/tab_hover.gif) no-repeat top right; } -.mtt-tabs ul li.mtt-tabs-selected { background:#ededed; border-left:1px solid #ededed; } -.mtt-tabs ul li.mtt-tabs-selected a { background:url(images/corner_right.gif) no-repeat top right; } +.mtt-tabs ul li { margin:0; font-size:9pt; font-weight:bold; float: left; min-width:89px; max-width:199px; text-align:center; overflow:hidden; margin-right:3px; border-left:1px solid #ededed; background:url(images/tab_hover.gif) no-repeat top right; } +.mtt-tabs ul a { margin:0; text-decoration:none; color:#444444; display:block; height:21px; width:100%; padding:6px 2px 0px 2px; outline:none; } +.mtt-tabs ul li.mtt-tabs-selected { background:#ededed url(images/corner_right.gif) no-repeat top right; border-left:1px solid #ededed; } .mtt-tabs ul li:hover a { color: #888888; } #page_tasks.readonly #htab_search a.htab-toggle { color:#444; } .mtt-htabs { clear:both; padding:8px; border-bottom:2px solid #DEDEDE; background:url(images/corner_right.gif) no-repeat top right #ededed; } #loading { float:left; padding-top:5px; background-color:#ffffff; display:none; padding-right:6px;} -.mtt-tabs ul li.mtt-tabs-button { width:21px; } +.mtt-tabs ul li.mtt-tabs-button { min-width:21px; width:21px; } .mtt-tabs ul li.mtt-tabs-button a img { border:none;} .mtt-tabs ul li.mtt-tabs-button:hover a img { opacity:0.5; } #page_tasks.readonly li.mtt-tabs-button { display:none; }