Skip to content

Commit

Permalink
fix: mobile dev page and popup style
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox authored and Jack-Works committed Oct 10, 2019
1 parent cddff6e commit c5ab054
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/extension/options-page/Developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ const DevPage = () => {
<>
<ListSubheader>Developer Settings</ListSubheader>
<div className={classes.root}>
<List>{useSettingsUI(debugModeSetting)}</List>
<List>{useSettingsUI(disableOpenNewTabInBackgroundSettings)}</List>
<Grid container spacing={2}>
<Grid container xs={6} item spacing={2} direction="column">
<Grid container xs={12} lg={6} item spacing={2} direction="column">
<Grid item>
<SeeMyProvePost />
</Grid>
Expand All @@ -79,8 +80,8 @@ const DevPage = () => {
<DecryptPostDeveloperMode />
</Grid>
</Grid>
<Grid container xs={6} item spacing={2} direction="column">
<Grid item>
<Grid container xs={12} lg={6} item spacing={2} direction="column">
<Grid xs={12} item>
<FriendsDeveloperMode />
</Grid>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions src/extension/popup-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ const useStyles = makeStyles(theme => ({
SSRRenderer(<Popup />)
export function Popup() {
const classes = useStyles()
const debugOn = useValueRef(debugModeSetting)

return (
<ThemeProvider theme={MaskbookLightTheme}>
<style>{`
body {
overflow-x: hidden;
margin: 0 auto;
min-width: 30em;
width: 30em;
max-width: 100%;
}`}</style>
<main className={classes.container}>
<img className={classes.logo} src="https://dimensiondev.github.io/Maskbook-VI/MB--Text--Blue.svg" />
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const useStyles = makeStyles<Theme>(theme =>
},
content: {
flexGrow: 1,
width: '100%',
},
}),
)
Expand Down

0 comments on commit c5ab054

Please sign in to comment.