Add transform to sidebars
This commit is contained in:
@@ -490,6 +490,10 @@ const styles = StyleSheet.create({
|
|||||||
{
|
{
|
||||||
translateX: '-100%',
|
translateX: '-100%',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// @ts-ignore web only -esb
|
||||||
|
translateX: 'calc(-1 * var(--removed-body-scroll-bar-size, 0px) / 2)',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
width: 240,
|
width: 240,
|
||||||
// @ts-ignore web only
|
// @ts-ignore web only
|
||||||
|
|||||||
@@ -127,6 +127,10 @@ const styles = StyleSheet.create({
|
|||||||
{
|
{
|
||||||
translateX: 300,
|
translateX: 300,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// @ts-ignore web only -esb
|
||||||
|
translateX: 'calc(-1 * var(--removed-body-scroll-bar-size, 0px) / 2)',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
maxHeight: '100%',
|
maxHeight: '100%',
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
|
|||||||
Reference in New Issue
Block a user