mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed trigger button opacity bug
Fixed trigger button bug of not being displayed in Portal settings with certain themes (e.g. Edition) because of setting opacity to 1 with inline CSS. Added condition to only set this property in preview mode.
This commit is contained in:
parent
7aac4fcd4c
commit
351e34d74c
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,8 @@ const ICON_MAPPING = {
|
||||||
|
|
||||||
const Styles = ({brandColor, hasText}) => {
|
const Styles = ({brandColor, hasText}) => {
|
||||||
const frame = {
|
const frame = {
|
||||||
...(!hasText ? {width: '105px'} : {})
|
...(!hasText ? {width: '105px'} : {}),
|
||||||
|
...(hasMode(['preview']) ? {opacity: 1} : {})
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
frame: {
|
frame: {
|
||||||
|
@ -37,7 +38,6 @@ const Styles = ({brandColor, hasText}) => {
|
||||||
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',
|
overflow: 'hidden',
|
||||||
opacity: 1,
|
|
||||||
...frame
|
...frame
|
||||||
},
|
},
|
||||||
userIcon: {
|
userIcon: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue