Revisions UI: Reduce the min width of a tick. props adamsilverstein. see #23901.

git-svn-id: https://develop.svn.wordpress.org/trunk@24254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2013-05-14 17:35:26 +00:00
parent 19fd80736a
commit e1a2affe21
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ window.wp = window.wp || {};
adjustMax = Diff.singleRevision ? 0 : 1;
tickWidth = Math.floor( sliderWidth / ( sliderMax - adjustMax ) );
tickWidth = ( tickWidth > 50 ) ? 50 : tickWidth; // set minimum and maximum widths for tick marks
tickWidth = ( tickWidth < 10 ) ? 10 : tickWidth;
tickWidth = ( tickWidth < 6 ) ? 6 : tickWidth;
sliderWidth = tickWidth * ( sliderMax - adjustMax ); // calculate the slider width
aTickWidth = $( '.revision-tick' ).width();