From e5a03c8a039271fd4c6d06f89c9d47fe1e77bf8b Mon Sep 17 00:00:00 2001 From: Nathan McCallum Date: Sat, 18 Jun 2022 09:27:55 +1000 Subject: [PATCH] Fix icon titles in nav bars --- app/components/menu/bottomBar.tsx | 20 ++++++++++--------- .../menu/bottomBar/bottomBarSection.tsx | 5 +++-- app/components/menu/icon.tsx | 6 ++++-- app/components/menu/topBar.tsx | 1 + 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/app/components/menu/bottomBar.tsx b/app/components/menu/bottomBar.tsx index 55fce11c..a761d3fd 100644 --- a/app/components/menu/bottomBar.tsx +++ b/app/components/menu/bottomBar.tsx @@ -26,28 +26,28 @@ class BottomBar extends React.Component {
@@ -55,7 +55,7 @@ class BottomBar extends React.Component { {BodyRPCStore.type !== 'space station' ? ( @@ -65,7 +65,7 @@ class BottomBar extends React.Component { {BodyRPCStore.type !== 'space station' ? ( @@ -74,7 +74,7 @@ class BottomBar extends React.Component { )} {
{this.props.progressPercent ? : ''} - {} + {}

{this.props.topText}

diff --git a/app/components/menu/icon.tsx b/app/components/menu/icon.tsx index a2eb9de3..380ef73e 100644 --- a/app/components/menu/icon.tsx +++ b/app/components/menu/icon.tsx @@ -7,20 +7,22 @@ import * as util from 'app/util'; type Props = { style: IconStyle; size?: IconSize; + title?: string; }; class Icon extends React.Component { render() { const { style } = this.props; const size = this.props.size || 'small'; + const title = this.props.title || util.humanize(style); return ( {util.humanize(style) ); } diff --git a/app/components/menu/topBar.tsx b/app/components/menu/topBar.tsx index 3d381685..aee51caf 100644 --- a/app/components/menu/topBar.tsx +++ b/app/components/menu/topBar.tsx @@ -33,6 +33,7 @@ class TopBar extends React.Component { MenuStore.toggleMapMode()}> -- 2.51.2