Skip to content
6 changes: 5 additions & 1 deletion client/modules/IDE/components/Editor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,10 @@ class Editor extends React.Component {
<button
aria-label={this.props.t('Editor.OpenSketchARIA')}
className="sidebar__contract"
onClick={this.props.collapseSidebar}
onClick={() => {
this.props.collapseSidebar();
this.props.closeProjectOptions();
}}
>
<LeftArrowIcon focusable="false" aria-hidden="true" />
</button>
Expand Down Expand Up @@ -629,6 +632,7 @@ Editor.propTypes = {
).isRequired,
isExpanded: PropTypes.bool.isRequired,
collapseSidebar: PropTypes.func.isRequired,
closeProjectOptions: PropTypes.func.isRequired,
expandSidebar: PropTypes.func.isRequired,
clearConsole: PropTypes.func.isRequired,
hideRuntimeErrorWarning: PropTypes.func.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions client/modules/IDE/components/Header/MobileNav.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect, useMemo, useState } from 'react';
import React, { useContext, useMemo, useState } from 'react';
import styled from 'styled-components';
import { useDispatch, useSelector } from 'react-redux';
import { useTranslation } from 'react-i18next';
Expand Down Expand Up @@ -224,7 +224,7 @@ const MobileNav = () => {
}
}

const title = useMemo(resolveTitle, [pageName]);
const title = useMemo(resolveTitle, [pageName, project.name]);

const Logo = AsteriskIcon;
return (
Expand Down
1 change: 1 addition & 0 deletions client/modules/IDE/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function SideBar() {
data-backdrop="filedrawer"
onClick={() => {
dispatch(collapseSidebar());
dispatch(closeProjectOptions());
}}
>
{' '}
Expand Down