mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(web): 💄 tighten up footer to fit more rows on screen
closes #1798
This commit is contained in:
parent
5618598bad
commit
400320661f
3 changed files with 13 additions and 2 deletions
|
|
@ -22,7 +22,11 @@ const { Header, Content, Footer } = Layout;
|
|||
|
||||
export const App: React.FC = () => (
|
||||
<Router>
|
||||
<Layout>
|
||||
<Layout
|
||||
style={{
|
||||
background: "#fff",
|
||||
}}
|
||||
>
|
||||
<Header style={{ background: "#fff" }}>
|
||||
<Logo />
|
||||
<Menu mode="horizontal" style={{ lineHeight: "64px" }} />
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ export const useTablePageSizer = () => {
|
|||
};
|
||||
|
||||
const calculateSize = () => ({
|
||||
pageSize: Math.floor((window.innerHeight - 184) / 57),
|
||||
pageSize:
|
||||
window.innerWidth < 576
|
||||
? Math.floor((window.innerHeight - 215) / 43)
|
||||
: Math.floor((window.innerHeight - 150) / 57),
|
||||
isNarrowWindow: window.innerWidth < 576 ? true : false,
|
||||
isWideWindow: window.innerWidth > 1918 ? true : false,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,3 +11,7 @@ code {
|
|||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
body > #root > section {
|
||||
height: 100vh;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue