diff --git a/pkg/interface/src/views/components/ReconnectButton.js b/pkg/interface/src/views/components/ReconnectButton.js index 2ffb026f90..674a0c75e0 100644 --- a/pkg/interface/src/views/components/ReconnectButton.js +++ b/pkg/interface/src/views/components/ReconnectButton.js @@ -14,7 +14,8 @@ const ReconnectButton = ({ connection, subscription }) => { display='inline-block' color='red' border={1} - lineHeight='min' + verticalAlign="middle" + lineHeight='0' borderRadius={2} style={{ cursor: 'pointer' }} onClick={reconnect}> @@ -29,7 +30,8 @@ const ReconnectButton = ({ connection, subscription }) => { ml={4} px={2} py={1} - lineHeight="min" + lineHeight="0" + verticalAlign="middle" display='inline-block' color='yellow' border={1} diff --git a/pkg/interface/src/views/components/StatusBar.js b/pkg/interface/src/views/components/StatusBar.js index da80a9be20..34ba1b7b32 100644 --- a/pkg/interface/src/views/components/StatusBar.js +++ b/pkg/interface/src/views/components/StatusBar.js @@ -1,15 +1,12 @@ import React from 'react'; import { useLocation } from 'react-router-dom'; -import { Box, Text, Icon } from '@tlon/indigo-react'; +import { Row, Box, Text, Icon } from '@tlon/indigo-react'; import ReconnectButton from './ReconnectButton'; const StatusBar = (props) => { const location = useLocation(); const atHome = Boolean(location.pathname === '/'); - const display = (!window.location.href.includes('popout/')) - ? 'db' : 'dn'; - const invites = (props.invites && props.invites['/contacts']) ? props.invites['/contacts'] : {}; @@ -28,28 +25,32 @@ const StatusBar = (props) => { ); return ( -
-
+ + {atHome ? null : ( props.history.push('/')}> )} @@ -58,8 +59,9 @@ const StatusBar = (props) => { borderRadius={2} color='washedGray' display='inline-block' + verticalAlign='middle' + lineHeight="0" style={{ cursor: 'pointer' }} - lineHeight='min' py={1} px={2} onClick={() => props.api.local.setOmnibox()}> @@ -77,14 +79,15 @@ const StatusBar = (props) => { connection={props.connection} subscription={props.subscription} /> -
-
+ + { {Notification} Groups -
-
+ + ); };