Mobile height fix
This commit is contained in:
@@ -101,7 +101,6 @@ export const BottomNav = (): JSX.Element => {
|
|||||||
|
|
||||||
<div className="flex-grow">
|
<div className="flex-grow">
|
||||||
<BottomNavItem
|
<BottomNavItem
|
||||||
tooltip="Toggle Navigation"
|
|
||||||
onClick={(): void => {
|
onClick={(): void => {
|
||||||
dispatch(toggleMobileNav());
|
dispatch(toggleMobileNav());
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { m } from 'framer-motion';
|
|||||||
import { Tooltip } from '@components/generic/Tooltip';
|
import { Tooltip } from '@components/generic/Tooltip';
|
||||||
|
|
||||||
export interface BottomNavItemProps {
|
export interface BottomNavItemProps {
|
||||||
tooltip: string;
|
tooltip?: string;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
className?: string;
|
className?: string;
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export const VersionInfo = ({
|
|||||||
<Modal
|
<Modal
|
||||||
title="Version Info"
|
title="Version Info"
|
||||||
actions={
|
actions={
|
||||||
|
// TODO: Check if version is hosted, and merge pwa update button here
|
||||||
appState.updateAvaliable && (
|
appState.updateAvaliable && (
|
||||||
<a href={`http://${connectionUrl}/admin/spiffs`}>
|
<a href={`http://${connectionUrl}/admin/spiffs`}>
|
||||||
<IconButton tooltip="Update now" icon={<MdUpgrade />} />
|
<IconButton tooltip="Update now" icon={<MdUpgrade />} />
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* JSONPretty */
|
||||||
.__json-pretty__ {
|
.__json-pretty__ {
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
color: #748096;
|
color: #748096;
|
||||||
@@ -56,3 +57,22 @@
|
|||||||
color: #748096;
|
color: #748096;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mobile height fix */
|
||||||
|
/* .min-h-fill {
|
||||||
|
min-height: -webkit-fill-available;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h-fill {
|
||||||
|
height: -webkit-fill-available;
|
||||||
|
} */
|
||||||
|
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
/* mobile viewport bug fix */
|
||||||
|
min-height: -webkit-fill-available;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
height: -webkit-fill-available;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user