Fixed overflow for portal button

refs https://github.com/TryGhost/members.js/issues/66

- Portal button showed scrollbars in some OS/browsers combination
- Hides overflow for portal button as we don't show scroll for any case
This commit is contained in:
Rish 2020-07-16 12:07:35 +05:30
parent 322096db5a
commit 9ccbef5db1

View File

@ -25,6 +25,7 @@ const Styles = ({brandColor, hasText}) => {
backgroundColor: brandColor, backgroundColor: brandColor,
animation: '250ms ease 0s 1 normal none running animation-bhegco', animation: '250ms ease 0s 1 normal none running animation-bhegco',
transition: 'opacity 0.3s ease 0s', transition: 'opacity 0.3s ease 0s',
overflow: 'hidden',
...frame ...frame
}, },
launcher: { launcher: {
@ -52,7 +53,8 @@ const Styles = ({brandColor, hasText}) => {
opacity: '1', opacity: '1',
transform: 'rotate(0deg) scale(1)', transform: 'rotate(0deg) scale(1)',
height: '100%', height: '100%',
transition: 'transform 0.16s linear 0s, opacity 0.08s linear 0s' transition: 'transform 0.16s linear 0s, opacity 0.08s linear 0s',
overflow: 'hidden'
}, },
userIcon: { userIcon: {
width: '20px', width: '20px',