change z-index and remove shrink

This commit is contained in:
hmacr committed 2025-01-04 06:08:39 +05:30
1 parent ca662b0f38
commit bfa32133f6
4 files changed
+4 -17

No files matched your search

+1 -6
View File
@@ -6,7 +6,6 @@ type Props = {
children?: React.ReactNode;
maxWidth?: string;
withStickyHeader?: boolean;
shrink?: boolean;
};
const Container = styled.div<Props>`
@@ -16,11 +15,7 @@ const Container = styled.div<Props>`
${breakpoint("tablet")`
padding: ${(props: Props) =>
props.shrink
? "0px 44px"
: props.withStickyHeader
? "4px 44px 60px"
: "60px 44px"};
props.withStickyHeader ? "4px 44px 60px" : "60px 44px"};
`};
`;
+1 -8
View File
@@ -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<Props> = ({
@@ -34,7 +32,6 @@ const Scene: React.FC<Props> = ({
children,
centered,
wide,
shrink,
}: Props) => (
<FillWidth>
<PageTitle title={textTitle || title} />
@@ -53,11 +50,7 @@ const Scene: React.FC<Props> = ({
left={left}
/>
{centered !== false ? (
<CenteredContent
maxWidth={wide ? "100vw" : undefined}
withStickyHeader
shrink={shrink}
>
<CenteredContent maxWidth={wide ? "100vw" : undefined} withStickyHeader>
{children}
</CenteredContent>
) : (
+1 -2
View File
@@ -138,7 +138,6 @@ function Members() {
</>
}
wide
shrink
>
<Heading>{t("Members")}</Heading>
<Text as="p" type="secondary">
@@ -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")};
`;
+1 -1
View File
@@ -56,7 +56,7 @@ function Shares() {
}, [t, error]);
return (
<Scene title={t("Shared Links")} icon={<GlobeIcon />} wide shrink>
<Scene title={t("Shared Links")} icon={<GlobeIcon />} wide>
<Heading>{t("Shared Links")}</Heading>
{can.update && !canShareDocuments && (