Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mobile: remove bottom scrollable view #21

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/src/page/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useNavigate, Link } from 'react-router-dom';
import * as React from 'react';
import Box from '@mui/material/Box';
import Card from '@mui/material/Card';
import CardActions from '@mui/material/CardActions';
import CardContent from '@mui/material/CardContent';
import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button';
Expand Down
15 changes: 6 additions & 9 deletions frontend/src/page/Site.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import React from 'react';
import Box from '@mui/material/Box';
import Drawer from '@mui/material/Drawer';
import AppBar from '@mui/material/AppBar';
import CssBaseline from '@mui/material/CssBaseline';
import Toolbar from '@mui/material/Toolbar';
import { Outlet, useParams, useLocation, useNavigate } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import {Outlet, useLocation, useNavigate, useParams} from 'react-router-dom';
import {Helmet} from 'react-helmet';

import { Context, useContext } from '../context';
import {Context, useContext} from '../context';
import Header from '../component/Header';
import Navbar from '../component/Navbar';
import config from '../config';
import { apiCall } from '../util/api';
import { isMobileWidth, isDesktopWidth } from '../util/screen';
import {isDesktopWidth, isMobileWidth} from '../util/screen';

const drawerWidth = 230;

Expand Down Expand Up @@ -64,11 +61,11 @@ const SiteWrapper = ({ children }) => {
<title>{getters.title}</title>
<link rel="icon" type="image/x-icon" href="/favicon.png" />
</Helmet>
<Box sx={{ display: 'flex', minWidth: '400px' }}>
<Box sx={{ display: 'flex'}}>
<CssBaseline />
<Header pageTitle={getters.title} sidebarWidth={sidebarRealTimeWidth} menuToggle={() => setters.setSidebarOpen(!getters.sidebarOpen)} />
<Navbar drawerWidth={drawerWidth} />
<Box component="main" sx={{ flexGrow: 1, p: 3 }}>
<Box component="main" sx={{ flexGrow: 1}}>
<Toolbar />
<Outlet />
</Box>
Expand Down
Loading