App bugfixes

This commit is contained in:
Manoj Vivek 2019-10-20 18:03:15 +05:30
parent 9c1ade1784
commit 7074f38082
4 changed files with 9 additions and 6 deletions

View file

@ -93,7 +93,11 @@ class AddressBar extends React.Component<Props> {
_normalize = address => {
if (!address.startsWith('http')) {
address = 'https://' + address;
let protocol = 'https://';
if (address.startsWith('localhost') || address.startsWith('127.0.0.1')) {
protocol = 'http://';
}
address = `${protocol}${address}`;
}
return address;
};

View file

@ -3,6 +3,6 @@
background: #00000030;
border-radius: 10px;
border: 1px solid lightgrey;
height: 80%;
height: 70vh;
overflow: scroll;
}

View file

@ -99,8 +99,7 @@ export default function DeviceManager(props) {
</AppBar>
<div className={styles.container}>
<p className={styles.toolTip}>
<span></span>Drag and drop the devices across as needed to
re-order them.
<span></span>Drag and drop the devices across to re-order them.
</p>
<DragDropContext onDragEnd={onDragEnd}>
<Grid container spacing={3} className={styles.content}>

View file

@ -28,12 +28,12 @@ const Header = function() {
<HttpAuthDialog />
<ToastContainer
position="top-right"
autoClose={4000}
autoClose={3000}
hideProgressBar
newestOnTop={false}
closeOnClick
pauseOnFocusLoss={false}
rtl={false}
pauseOnVisibilityChange
draggable
pauseOnHover
toastClassName={styles.darkToast}