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:
parent
19fd80736a
commit
e1a2affe21
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue