Skip to content

Commit e8d7890

Browse files
committed
use ProjectName
1 parent 77fd047 commit e8d7890

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { availableLanguages, languageKeyToLabel } from '../../../../i18n';
2828
import { showToast } from '../../actions/toast';
2929
import { setLanguage } from '../../actions/preferences';
3030
import Overlay from '../../../App/components/Overlay';
31+
import ProjectName from './ProjectName';
3132

3233
const Nav = styled(NavBar)`
3334
background: ${prop('MobilePanel.default.background')};
@@ -63,7 +64,7 @@ const Title = styled.div`
6364
flex-direction: column;
6465
gap: ${remSize(2)};
6566
66-
> * {
67+
* {
6768
padding: 0;
6869
margin: 0;
6970
}
@@ -231,7 +232,7 @@ const MobileNav = () => {
231232
<Logo />
232233
</LogoContainer>
233234
<Title>
234-
<h1>{title}</h1>
235+
<h1>{title === project.name ? <ProjectName /> : title}</h1>
235236
{project?.owner && title === project.name && (
236237
<h5>by {project?.owner?.username}</h5>
237238
)}

0 commit comments

Comments
 (0)