Skip to content

Commit eec0ce2

Browse files
committed
update mouse interaction note
1 parent a9e8471 commit eec0ce2

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/App.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ function App() {
4545
const [cifText3D, setCifText3D] = useState(null);
4646
const [cifText2D, setCifText2D] = useState(null);
4747

48-
// componentDidMount equivalent
4948
useEffect(() => {
5049
fetchCif3D().then((cifText) => {
5150
setCifText3D(cifText);

src/StructureVisualizer/StructureWindow/index.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@
3030
}
3131

3232
.mouse-disabled-note {
33-
background-color: #fff1f1;
34-
border: 1px solid black;
33+
background-color: #f8f8f8;
34+
border: 1px solid #999999;
3535
color: #353434;
36-
padding: 2px 6px;
36+
padding: 1px 6px;
3737
border-radius: 5px;
3838
position: absolute;
39-
top: 10px;
40-
left: 10px;
39+
bottom: 10px;
40+
right: 10px;
4141
z-index: 3;
4242
cursor: pointer;
4343
user-select: none;
4444
}
4545

4646
.on {
47-
background-color: #e9ffe7;
47+
display: none;
4848
}
4949

5050
.mouse-disabled-note:hover {

src/StructureVisualizer/StructureWindow/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ class StructureWindow extends React.Component {
1313
let swClassName = "structure-window";
1414
if (!this.props.mouseEnabled) swClassName += " disable-mouse";
1515

16-
let mouseNoteText = "Interaction off";
16+
let mouseNoteText = "Click to interact";
1717
let mouseNoteClass = "mouse-disabled-note";
1818
if (this.props.mouseEnabled) {
19-
mouseNoteText = "Interaction on";
2019
mouseNoteClass = "mouse-disabled-note on";
2120
}
2221
return (

0 commit comments

Comments
 (0)