Move icon above header on mobile (#10912)

This commit is contained in:
Tom Moor
2025-12-14 17:40:12 -05:00
committed by GitHub
parent 7426ed785f
commit f309f39b5e
2 changed files with 9 additions and 13 deletions
+7 -3
View File
@@ -1,6 +1,7 @@
import { observer } from "mobx-react";
import { getLuminance } from "polished";
import styled from "styled-components";
import breakpoint from "styled-components-breakpoint";
import useStores from "../hooks/useStores";
import { IconType } from "../types";
import { IconLibrary } from "../utils/IconLibrary";
@@ -113,15 +114,18 @@ export const IconTitleWrapper = styled(Flex)<{ dir?: string }>`
align-items: center;
justify-content: center;
position: absolute;
top: 3px;
top: -44px;
height: 40px;
width: 40px;
// Always move above TOC
z-index: 1;
${(props: { dir?: string }) =>
props.dir === "rtl" ? "right: -44px" : "left: -44px"};
${breakpoint("tablet")`
top: 3px;
${(props: { dir?: string }) =>
props.dir === "rtl" ? "right: -44px" : "left: -44px"};
`}
`;
const Span = styled(Flex)<{ size: number }>`