From 0242ba2233e5973205cdb435625b0a86dc98047b Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Fri, 22 Jan 2010 17:35:50 +0300 Subject: [PATCH] * fixed tab appearance --- src/ajax.js | 2 +- src/themes/default/style.css | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ajax.js b/src/ajax.js index b4a0e87..83f4b52 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -977,7 +977,7 @@ function renameCurList() item.i = curList.i; tabLists[curList.i] = item; curList = item; - $('#lists>ul>.mtt-tabs-selected>a').attr('title', item.name).html(item.name); + $('#lists>ul>.mtt-tabs-selected>a').attr('title', item.name).find('span').html(item.name); mytinytodo.doAction('listRenamed', {i:curList.i, list:item}); }, 'json'); } diff --git a/src/themes/default/style.css b/src/themes/default/style.css index 3e50d94..264e264 100644 --- a/src/themes/default/style.css +++ b/src/themes/default/style.css @@ -25,9 +25,9 @@ a { color:#0000ff; } #authform div.h { font-weight:bold; } .mtt-tabs { list-style:none; padding:0; margin:0; } -.mtt-tabs li { margin:1px 3px 0 0; float:left; width:89px; min-width:89px; max-width:199px; border-left:1px solid #ededed; background:#fbfbfb url(images/tab_hover.gif) no-repeat top right; } -.mtt-tabs a { margin:0; font-size:9pt; font-weight:bold; text-decoration:none; text-align:center; white-space:nowrap; color:#444444; display:block; height:21px; padding:6px 3px 0px 2px; outline:none; vertical-align:top; } -.mtt-tabs a span { display:block; width:89px; min-width:89px; cursor:pointer; padding:0;} +.mtt-tabs li { margin:1px 3px 0 0; float:left; max-width:199px; border-left:1px solid #ededed; background:#fbfbfb url(images/tab_hover.gif) no-repeat top right; } +.mtt-tabs a { margin:0; font-size:9pt; font-weight:bold; text-decoration:none; text-align:center; white-space:nowrap; color:#444444; display:block; height:21px; padding:6px 6px 0px 2px; outline:none; vertical-align:top; } +.mtt-tabs a span { display:block; min-width:75px; cursor:pointer; padding:0; overflow:hidden; } .mtt-tabs li.mtt-tabs-selected { background:#ededed url(images/corner_right.gif) no-repeat top right; border-left:1px solid #ededed; } .mtt-tabs li:hover a { color: #888888; } .mtt-tabs li.mtt-tabs-button { width:21px; min-width:21px; } @@ -37,8 +37,6 @@ a { color:#0000ff; } .mtt-tabs.mtt-tabs-only-one li { display:none; } .mtt-tabs.mtt-tabs-only-one li.mtt-tabs-selected, .mtt-tabs.mtt-tabs-only-one li.mtt-tabs-button { display:block; } #page_tasks.readonly li.mtt-tabs-button { display:none; } -*>.mtt-tabs li { width:auto; height:auto; } -*>.mtt-tabs a span { height:auto; width:auto; } #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; }