diff --git a/app/components/CenteredContent.tsx b/app/components/CenteredContent.tsx index ecd8ece872..888146b71a 100644 --- a/app/components/CenteredContent.tsx +++ b/app/components/CenteredContent.tsx @@ -6,7 +6,6 @@ type Props = { children?: React.ReactNode; maxWidth?: string; withStickyHeader?: boolean; - shrink?: boolean; }; const Container = styled.div` @@ -16,11 +15,7 @@ const Container = styled.div` ${breakpoint("tablet")` padding: ${(props: Props) => - props.shrink - ? "0px 44px" - : props.withStickyHeader - ? "4px 44px 60px" - : "60px 44px"}; + props.withStickyHeader ? "4px 44px 60px" : "60px 44px"}; `}; `; diff --git a/app/components/Scene.tsx b/app/components/Scene.tsx index 0c6d769dd4..d01ce177ab 100644 --- a/app/components/Scene.tsx +++ b/app/components/Scene.tsx @@ -21,8 +21,6 @@ type Props = { wide?: boolean; /** The content of the scene */ children?: React.ReactNode; - /** Whether to shrink padding */ - shrink?: boolean; }; const Scene: React.FC = ({ @@ -34,7 +32,6 @@ const Scene: React.FC = ({ children, centered, wide, - shrink, }: Props) => ( @@ -53,11 +50,7 @@ const Scene: React.FC = ({ left={left} /> {centered !== false ? ( - + {children} ) : ( diff --git a/app/scenes/Settings/Members.tsx b/app/scenes/Settings/Members.tsx index 65e7980ef5..2a5edc47bb 100644 --- a/app/scenes/Settings/Members.tsx +++ b/app/scenes/Settings/Members.tsx @@ -138,7 +138,6 @@ function Members() { } wide - shrink > {t("Members")} @@ -214,7 +213,7 @@ const StickyFilters = styled(Flex)` height: 40px; position: sticky; top: ${HEADER_HEIGHT}px; - z-index: ${depths.menu}; + z-index: ${depths.header}; background: ${s("background")}; `; diff --git a/app/scenes/Settings/Shares.tsx b/app/scenes/Settings/Shares.tsx index e9eccab3b2..d2691b60d0 100644 --- a/app/scenes/Settings/Shares.tsx +++ b/app/scenes/Settings/Shares.tsx @@ -56,7 +56,7 @@ function Shares() { }, [t, error]); return ( - } wide shrink> + } wide> {t("Shared Links")} {can.update && !canShareDocuments && (