diff --git a/.gitignore b/.gitignore index 083a54cbd..49f891d23 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,6 @@ dist !example-config.yml !test-config.yml !har-mock-config.yml + +# vscode extensions +.vscode diff --git a/lib/components/app/desktop-nav.tsx b/lib/components/app/desktop-nav.tsx index e45a5027e..cd877b1b8 100644 --- a/lib/components/app/desktop-nav.tsx +++ b/lib/components/app/desktop-nav.tsx @@ -1,4 +1,5 @@ import { connect } from 'react-redux' +import { isMobile } from '@opentripplanner/core-utils/lib/ui' import { Nav, Navbar } from 'react-bootstrap' import { useIntl } from 'react-intl' import React from 'react' @@ -104,16 +105,21 @@ const DesktopNav = ({ > - {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */} - {/* @ts-ignore The dynamic tag is causing some trouble */} - - {/* A title is always rendered (e.g.for screen readers) - but is visually-hidden if a branding icon is used. */} -
{title}
-
+ + {!isMobile() && ( + <> + {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */} + {/* @ts-ignore The dynamic tag is causing some trouble */} + + {/* A title is always rendered (e.g.for screen readers) + but is visually-hidden if a branding icon is used. */} +
{title}
+
+ + )}