fix(details): fixed for glass header

feat/draggable-server-list
trashtemp 2021-12-30 14:13:25 +01:00
parent 675992bbc1
commit 672b657f58
No known key found for this signature in database
GPG Key ID: D1F0DB65081B0FC6
1 changed files with 8 additions and 1 deletions

View File

@ -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) =>