fix breadcrumb icon offset
Reviewed By: @fkgozali Differential Revision: D2528804 fb-gh-sync-id: 6ed9e9ce330ecc147c3fb8217c7b1b0986c862fe
This commit is contained in:
parent
7abf8ba631
commit
c86966c150
|
@ -125,18 +125,14 @@ RIGHT[0].Title = merge(FIRST_TITLE_BASE, {opacity: 0});
|
||||||
var buildIndexSceneInterpolator = function(startStyles, endStyles) {
|
var buildIndexSceneInterpolator = function(startStyles, endStyles) {
|
||||||
return {
|
return {
|
||||||
Crumb: buildStyleInterpolator({
|
Crumb: buildStyleInterpolator({
|
||||||
translateX: {
|
left: {
|
||||||
type: 'linear',
|
type: 'linear',
|
||||||
from: 0,
|
from: startStyles.Crumb.left,
|
||||||
to: endStyles.Crumb.left - startStyles.Crumb.left,
|
to: endStyles.Crumb.left,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
extrapolate: true,
|
extrapolate: true,
|
||||||
},
|
},
|
||||||
left: {
|
|
||||||
value: startStyles.Crumb.left,
|
|
||||||
type: 'constant'
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
Icon: buildStyleInterpolator({
|
Icon: buildStyleInterpolator({
|
||||||
opacity: {
|
opacity: {
|
||||||
|
@ -164,18 +160,14 @@ var buildIndexSceneInterpolator = function(startStyles, endStyles) {
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
},
|
},
|
||||||
translateX: {
|
left: {
|
||||||
type: 'linear',
|
type: 'linear',
|
||||||
from: 0,
|
from: startStyles.Title.left,
|
||||||
to: endStyles.Title.left - startStyles.Title.left,
|
to: endStyles.Title.left,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1,
|
max: 1,
|
||||||
extrapolate: true,
|
extrapolate: true,
|
||||||
},
|
},
|
||||||
left: {
|
|
||||||
value: startStyles.Title.left,
|
|
||||||
type: 'constant'
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
RightItem: buildStyleInterpolator({
|
RightItem: buildStyleInterpolator({
|
||||||
opacity: {
|
opacity: {
|
||||||
|
|
Loading…
Reference in New Issue