From 22657d56d3dc72bbc9b5e5008c2bffd61b7f4b72 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 12 Apr 2019 13:52:17 +0800 Subject: [PATCH] Unify width of panels in Welcome close #10 --- src/components/Welcomes/0.tsx | 3 ++- src/components/Welcomes/1a1.tsx | 3 ++- src/components/Welcomes/1a2.tsx | 3 ++- src/components/Welcomes/1a3.tsx | 3 ++- src/components/Welcomes/1a4.tsx | 3 ++- src/components/Welcomes/1b1.tsx | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/Welcomes/0.tsx b/src/components/Welcomes/0.tsx index 1ca9a484ccd4..cd105821ad21 100644 --- a/src/components/Welcomes/0.tsx +++ b/src/components/Welcomes/0.tsx @@ -27,7 +27,8 @@ export default withStylesTyped((theme: Theme) => createStyles({ paper: { paddingBottom: '1rem', - maxWidth: '35rem', + width: 600, + boxSizing: 'border-box', '& article': { padding: '0 3rem', textAlign: 'center', diff --git a/src/components/Welcomes/1a1.tsx b/src/components/Welcomes/1a1.tsx index 94d510138c57..a848e25e2cbb 100644 --- a/src/components/Welcomes/1a1.tsx +++ b/src/components/Welcomes/1a1.tsx @@ -14,7 +14,8 @@ export default withStylesTyped((theme: Theme) => paper: { padding: '2rem 4rem 1rem 4rem', textAlign: 'center', - maxWidth: '25rem', + width: 600, + boxSizing: 'border-box', '& > *': { marginBottom: theme.spacing.unit * 3, }, diff --git a/src/components/Welcomes/1a2.tsx b/src/components/Welcomes/1a2.tsx index 21c6f2e3e4f9..9f26788ed7fb 100644 --- a/src/components/Welcomes/1a2.tsx +++ b/src/components/Welcomes/1a2.tsx @@ -15,7 +15,8 @@ export default withStylesTyped((theme: Theme) => paper: { padding: '2rem 1rem 1rem 1rem', textAlign: 'center', - maxWidth: '35rem', + width: 600, + boxSizing: 'border-box', '& > *': { marginBottom: theme.spacing.unit * 3, }, diff --git a/src/components/Welcomes/1a3.tsx b/src/components/Welcomes/1a3.tsx index 30710a97aecf..718254b57f72 100644 --- a/src/components/Welcomes/1a3.tsx +++ b/src/components/Welcomes/1a3.tsx @@ -15,7 +15,8 @@ export default withStylesTyped((theme: Theme) => paper: { padding: '2rem 1rem 1rem 1rem', textAlign: 'center', - maxWidth: '35rem', + width: 600, + boxSizing: 'border-box', '& > *': { marginBottom: theme.spacing.unit * 3, }, diff --git a/src/components/Welcomes/1a4.tsx b/src/components/Welcomes/1a4.tsx index ff281686df89..448427c8e6e6 100644 --- a/src/components/Welcomes/1a4.tsx +++ b/src/components/Welcomes/1a4.tsx @@ -34,7 +34,8 @@ export default withStylesTyped((theme: Theme) => paper: { padding: '2rem 2rem 1rem 2rem', textAlign: 'center', - maxWidth: '35rem', + width: 600, + boxSizing: 'border-box', '& > *': { marginBottom: theme.spacing.unit * 3, }, diff --git a/src/components/Welcomes/1b1.tsx b/src/components/Welcomes/1b1.tsx index e69d553289c6..264e5b0845c1 100644 --- a/src/components/Welcomes/1b1.tsx +++ b/src/components/Welcomes/1b1.tsx @@ -33,7 +33,8 @@ interface Props { export default withStylesTyped((theme: Theme) => createStyles({ paper: { - maxWidth: '35rem', + width: 600, + boxSizing: 'border-box', }, nav: { paddingTop: theme.spacing.unit,