prevent horizontal scrollbar on firefox during expand animation (#47758)

This commit is contained in:
Ashley Harrison 2022-04-19 10:31:59 +01:00 committed by GitHub
parent 378ce4f685
commit bb5f77703c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,10 @@ const getAnimStyles = (theme: GrafanaTheme2, animationDuration: number) => {
const overlayTransition = {
...commonTransition,
transitionProperty: 'background-color, box-shadow, width',
// this is needed to prevent a horizontal scrollbar during the animation on firefox
'.scrollbar-view': {
overflow: 'hidden !important',
},
};
const backdropTransition = {