on mobile view the app used to launch with nav bar open, this fixes it.

About page had same large horizontal margin which made about page very
narrow. This fixes it.
This commit is contained in:
ajaythapliyal
2023-02-25 11:51:17 +05:30
parent 63af495693
commit 2f246a90d0
2 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,10 @@ import { useState } from 'react';
import { ActiveState } from './models/misc';
export default function App() {
const [navState, setNavState] = useState<ActiveState>('ACTIVE');
//TODO : below media query is disjoint from tailwind. Please wire it together.
const [navState, setNavState] = useState<ActiveState>(
window.matchMedia('((min-width: 768px)').matches ? 'ACTIVE' : 'INACTIVE',
);
return (
<div className="min-h-full min-w-full">