Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset button fix #679

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions src/components/structural/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as layoutTypes from "../../../constants/LayoutTypes.js";

import {
Button,
ButtonBase,
Icon,
MenuItem,
Tooltip,
Expand All @@ -36,15 +35,6 @@ const exitBtnStyle = {
right: 0,
};

const resetButtonStyle = {
top: 2,
paddingLeft: 10,
paddingRight: 10,
color: "white",
opacity: 1

};

/**
* React component class for the header
*/
Expand Down Expand Up @@ -808,15 +798,14 @@ class Header extends Component {
<Icon className="material-icons">save</Icon>
</IconButton>
</Tooltip>
<Tooltip title="reset position" placement="bottom-start">
<ButtonBase
<Tooltip title="Reset Position" placement="bottom-start">
<IconButton
id="reset-btn"
onClick={() => this.props.sceneActions.setCamera(0, 1.6, 3)}
className="header-btn d-none d-md-block"
style= {resetButtonStyle}
disabled={referenceMode}>
<Icon className ="material-icons">settings_backup_restore</Icon>
</ButtonBase>
style={style.default}
className="header-btn d-none d-md-block">
<Icon className="material-icons">settings_backup_restore</Icon>
</IconButton>
</Tooltip>
<ProjectView
deleteFunc={this.props.projectActions.deleteProj}
Expand Down
4 changes: 4 additions & 0 deletions src/myr/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export const TourSteps = [
selector: "#save-btn",
content: "Save your work.",
},
{
selector: "#reset-btn",
content: "Reset camera position."
},
{
selector: "#open-btn",
content: "See previous work and view examples.",
Expand Down