mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 04:46:18 -05:00
Using PageContainer to handle responsive margin for mobile. All pages have more padding on desktop than on mobile.
This commit is contained in:
parent
069cd3a402
commit
723d9863bf
9 changed files with 110 additions and 84 deletions
|
|
@ -12,7 +12,7 @@ import {AppsRoute} from "./components/Apps";
|
|||
import {InventoryRoute} from "./components/Inventory";
|
||||
import {ArchiveRoute, ArchivesList} from "./components/Archive";
|
||||
import {Saver} from "./components/Upload";
|
||||
import {MoreButton, SearchInput} from "./components/Common";
|
||||
import {MoreButton, PageContainer, SearchInput} from "./components/Common";
|
||||
import {FilesRoute} from "./components/Files";
|
||||
import {useSearch, useVersion} from "./hooks/customHooks";
|
||||
|
||||
|
|
@ -49,10 +49,10 @@ function Welcome() {
|
|||
}
|
||||
|
||||
return (
|
||||
<Container fluid>
|
||||
<PageContainer>
|
||||
<SearchInput initValue={searchStr} onSubmit={setSearchStr} size='big' placeholder='Search Everywhere...'/>
|
||||
{body}
|
||||
</Container>
|
||||
</PageContainer>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ export default function App() {
|
|||
<header>
|
||||
<NavBar/>
|
||||
</header>
|
||||
<Container fluid style={{marginTop: '1em', padding: '1em'}}>
|
||||
<>
|
||||
<Switch>
|
||||
<Route path='/videos/video/:video_id' exact component={VideoWrapper}/>
|
||||
<Route path='/videos/channel/:channel_link/video/:video_id' exact component={VideoWrapper}/>
|
||||
|
|
@ -91,7 +91,7 @@ export default function App() {
|
|||
<Route path='/files' component={FilesRoute}/>
|
||||
<Route component={PageNotFound}/>
|
||||
</Switch>
|
||||
</Container>
|
||||
</>
|
||||
<SemanticToastContainer position="top-right"/>
|
||||
<Footer/>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue