diff --git a/src/components/ui/Details.tsx b/src/components/ui/Details.tsx index 05f2d71a..98f7f140 100644 --- a/src/components/ui/Details.tsx +++ b/src/components/ui/Details.tsx @@ -1,13 +1,20 @@ import styled, { css } from "styled-components"; +import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice"; + export default styled.details<{ sticky?: boolean; large?: boolean }>` summary { ${(props) => props.sticky && css` - top: -1px; + top: 48px; z-index: 10; position: sticky; + ${() => + isTouchscreenDevice && + css` + top: 56px; + `} `} ${(props) =>