File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
StructureVisualizer/StructureWindow Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 : 2 px 6px ;
36+ padding : 1 px 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 {
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments