Fix not working on some pages
This commit is contained in:
parent
00181c9edb
commit
ab9b3bd0d1
|
@ -40,7 +40,7 @@ export default props => {
|
||||||
left: left + position.x
|
left: left + position.x
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<button
|
<div
|
||||||
style={buttonStyle}
|
style={buttonStyle}
|
||||||
className={`simple-translate-button ${shouldShow ? "isShow" : ""}`}
|
className={`simple-translate-button ${shouldShow ? "isShow" : ""}`}
|
||||||
onClick={props.handleButtonClick}
|
onClick={props.handleButtonClick}
|
||||||
|
|
|
@ -6,3 +6,10 @@
|
||||||
--simple-translate-highlight: #5595ff;
|
--simple-translate-highlight: #5595ff;
|
||||||
--simple-translate-main-bg: #ffffff;
|
--simple-translate-main-bg: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#simple-translate {
|
||||||
|
all: initial;
|
||||||
|
& > div {
|
||||||
|
all: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -18,6 +18,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.simple-translate-result-wrapper {
|
.simple-translate-result-wrapper {
|
||||||
|
all: initial;
|
||||||
|
position: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
visibility: inherit;
|
||||||
|
opacity: inherit;
|
||||||
padding: 10px 18px;
|
padding: 10px 18px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
|
|
Loading…
Reference in a new issue