Skip to content

Commit

Permalink
correct nearby view mobile link class
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Jun 28, 2024
1 parent cc07efa commit 07a5da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/app/app-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class AppMenu extends Component<
{/* This item is duplicated by the view-switcher, but only shown on mobile
when the view switcher isn't shown (using css) */}
<AppMenuItem
className="app-menu-route-viewer-link"
className="app-menu-nearby-viewer-link"
icon={<MapPin />}
onClick={this._togglePane}
text={intl.formatMessage({
Expand Down
2 changes: 2 additions & 0 deletions lib/components/app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@

/* Don't show route viewer link in the app menu on desktop as it is in the navbar */
.app-menu .app-menu-route-viewer-link,
.app-menu .app-menu-nearby-viewer-link,
.app-menu .app-menu-trip-planner-link,
.app-menu #app-menu-locale-selector {
display: none;
}
@media (max-width: 768px) {
.app-menu .app-menu-route-viewer-link,
.app-menu .app-menu-nearby-viewer-link,
.app-menu .app-menu-trip-planner-link,
.app-menu #app-menu-locale-selector {
display: flex;
Expand Down

0 comments on commit 07a5da1

Please sign in to comment.