Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fixed: scroll-bar issue.
Browse files Browse the repository at this point in the history
removed scroll-bar from body-element, to use scroll-bar have to each section.
  • Loading branch information
AtuyL committed Nov 30, 2018
1 parent 840b108 commit 1e0aefe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
8 changes: 4 additions & 4 deletions app/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export default connect(mapStateToProps, mapDispatchToProps)(function ({
<HeaderContainer />
{/* /header */}

{/* footer */}
<StatusBarContainer />
{/* /footer */}

{/* main */}
<TableContainer />
<InspectContainer />
{/* /main */}

{/* footer */}
<StatusBarContainer />
{/* /footer */}

<Dialog.LinkContainer />
<Dialog.ConfirmContainer />
<DragDropContainer />
Expand Down
5 changes: 0 additions & 5 deletions app/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ import * as Button from './button'
import Icon from './icon'

const Container = styled.header`
position: fixed;
z-index: 1;
width: 100%;
height: 2.5rem;
padding: 0.25rem 0.75rem;
-webkit-app-region: drag;
background-color: var(--color-neutral);
color: var(--color-white);
& ~ main {
margin-top: 2.5rem;
}
`

const HideLayer = styled.div`
Expand Down
3 changes: 3 additions & 0 deletions app/components/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ import {
import SCREEN from '../consts/screen'

const DetailHeader = styled.header`
width: 100%;
height: 4rem;
flex-shrink: 0;
border-bottom: 1px solid var(--color-neutral-20);
`

const DetailFooter = styled.footer`
width: 100%;
bottom: 0;
flex-shrink: 0;
border-top: 1px solid var(--color-neutral-20);
`
Expand Down
12 changes: 3 additions & 9 deletions app/components/status-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@ import styled from 'styled-components'
import bytes from 'prettier-bytes'

const StatusBar = styled.footer`
position: fixed;
z-index: 1;
left: 0;
bottom: 0;
width: 100vw;
width: 100%;
min-width: 800px;
padding: 0.5rem 1rem 0.75rem;
height: 2.5rem;
padding: 0.25rem 0.75rem;
background-color: var(--color-neutral-04);
color: var(--color-neutral-60);
& ~ main {
margin-bottom: 3rem;
}
`

export default function ({ up, down, show }) {
Expand Down
3 changes: 2 additions & 1 deletion static/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ body {
line-height: 1.5;
overflow: hidden;
min-width: 800px;
height: 100vh;
}

main {
Expand Down Expand Up @@ -96,7 +97,7 @@ button {
#app-root {
display: flex;
flex-direction: column;
min-height: 100vh;
height: 100vh;
}

#app-root > main {
Expand Down

0 comments on commit 1e0aefe

Please sign in to comment.