Fix not working on some pages

This commit is contained in:
sienori 2019-03-21 17:28:08 +09:00
parent 00181c9edb
commit ab9b3bd0d1
3 changed files with 13 additions and 1 deletions

View file

@ -40,7 +40,7 @@ export default props => {
left: left + position.x
};
return (
<button
<div
style={buttonStyle}
className={`simple-translate-button ${shouldShow ? "isShow" : ""}`}
onClick={props.handleButtonClick}

View file

@ -6,3 +6,10 @@
--simple-translate-highlight: #5595ff;
--simple-translate-main-bg: #ffffff;
}
#simple-translate {
all: initial;
& > div {
all: initial;
}
}

View file

@ -18,6 +18,11 @@
}
.simple-translate-result-wrapper {
all: initial;
position: inherit;
font-size: inherit;
visibility: inherit;
opacity: inherit;
padding: 10px 18px;
box-sizing: border-box;
width: max-content;