File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import ListItem from "@material-ui/core/ListItem"
3
3
import { makeStyles } from "@material-ui/core/styles"
4
4
import { FC } from "react"
5
5
import { NavLink } from "react-router-dom"
6
+ import { sidePadding } from "theme/constants"
6
7
import { combineClasses } from "../../util/combineClasses"
7
8
8
9
export interface TabSidebarItem {
@@ -52,11 +53,10 @@ const useStyles = makeStyles((theme) => ({
52
53
display : "flex" ,
53
54
borderBottom : `1px solid ${ theme . palette . divider } ` ,
54
55
marginBottom : theme . spacing ( 2 ) ,
55
- // 48px is the side margins
56
- width : "calc(100% + 48px)" ,
57
- // Side margin
58
- marginLeft : - theme . spacing ( 3 ) ,
59
- marginTop : theme . spacing ( 3 ) ,
56
+ // Fit all the width
57
+ width : `calc(100% + ${ sidePadding * 2 } px)` ,
58
+ marginLeft : - sidePadding ,
59
+ marginTop : sidePadding ,
60
60
} ,
61
61
} ,
62
62
You can’t perform that action at this time.
0 commit comments