Skip to content
Snippets Groups Projects
Commit 2345d4f7 authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Fix styling of settings container

parent dfa1023f
No related branches found
No related tags found
1 merge request!70Fix styling of settings container
Pipeline #41289 passed with warnings
......@@ -3,7 +3,7 @@ import AppBar from '@material-ui/core/AppBar'
import React from 'react'
import CompetitionSettings from './CompetitionSettings'
import SlideSettings from './SlideSettings'
import { SettingsTab } from './styled'
import { SettingsContainer, SettingsTab, ToolbarPadding } from './styled'
interface TabPanelProps {
activeTab: number
......@@ -20,15 +20,16 @@ function TabContent(props: TabPanelProps) {
const SettingsPanel: React.FC = () => {
const [activeTab, setActiveTab] = React.useState(0)
return (
<div>
<AppBar position="static">
<SettingsContainer>
<AppBar position="static" style={{ position: 'absolute' }}>
<Tabs value={activeTab} onChange={(event, val) => setActiveTab(val)} aria-label="simple tabs example">
<SettingsTab label="Tävling" />
<SettingsTab label="Sida" />
</Tabs>
</AppBar>
<ToolbarPadding />
<TabContent activeTab={activeTab} />
</div>
</SettingsContainer>
)
}
......
......@@ -35,3 +35,12 @@ export const SlideEditorPaper = styled.div`
export const HiddenInput = styled.input`
display: none;
`
export const SettingsContainer = styled.div`
overflow-x: hidden;
`
export const ToolbarPadding = styled.div`
height: 0;
padding-top: 55px;
`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment