Revisions UI: Reduce the min width of a tick. props adamsilverstein. see #23901.
git-svn-id: http://core.svn.wordpress.org/trunk@24254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ab1807c76
commit
fe67f477d1
|
@ -461,7 +461,7 @@ window.wp = window.wp || {};
|
||||||
adjustMax = Diff.singleRevision ? 0 : 1;
|
adjustMax = Diff.singleRevision ? 0 : 1;
|
||||||
tickWidth = Math.floor( sliderWidth / ( sliderMax - adjustMax ) );
|
tickWidth = Math.floor( sliderWidth / ( sliderMax - adjustMax ) );
|
||||||
tickWidth = ( tickWidth > 50 ) ? 50 : tickWidth; // set minimum and maximum widths for tick marks
|
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
|
sliderWidth = tickWidth * ( sliderMax - adjustMax ); // calculate the slider width
|
||||||
aTickWidth = $( '.revision-tick' ).width();
|
aTickWidth = $( '.revision-tick' ).width();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue