Skip to content

feat: Make settings page responsive #3228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use variables instead of hard values
  • Loading branch information
BrunoQuaresma committed Jul 26, 2022
commit a35085964be52a05bc3d1ed9ff1f8186358661be
10 changes: 5 additions & 5 deletions site/src/components/TabSidebar/TabSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ListItem from "@material-ui/core/ListItem"
import { makeStyles } from "@material-ui/core/styles"
import { FC } from "react"
import { NavLink } from "react-router-dom"
import { sidePadding } from "theme/constants"
import { combineClasses } from "../../util/combineClasses"

export interface TabSidebarItem {
Expand Down Expand Up @@ -52,11 +53,10 @@ const useStyles = makeStyles((theme) => ({
display: "flex",
borderBottom: `1px solid ${theme.palette.divider}`,
marginBottom: theme.spacing(2),
// 48px is the side margins
width: "calc(100% + 48px)",
// Side margin
marginLeft: -theme.spacing(3),
marginTop: theme.spacing(3),
// Fit all the width
width: `calc(100% + ${sidePadding * 2}px)`,
marginLeft: -sidePadding,
marginTop: sidePadding,
},
},

Expand Down