File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/gitbook/src/components/DocumentView Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ export function Update(props: BlockProps<DocumentBlockUpdate>) {
3535 short : formatDateShort ( parsedDate ) ,
3636 } [ dateFormat ] ;
3737
38- const isSticky = parentUpdates . data . sticky ;
39-
4038 return (
4139 < div
4240 className = { tcls (
@@ -46,9 +44,8 @@ export function Update(props: BlockProps<DocumentBlockUpdate>) {
4644 >
4745 < div
4846 className = { tcls (
49- 'h-fit w-40 min-w-40 shrink-0' ,
50- // Date is sticky on larger screens & if enabled on the parent Updates block
51- isSticky && 'md:sticky md:top-[calc(var(--toc-top-offset)+8px)]!'
47+ // Date is only sticky on larger screens when we use flex-row layout
48+ 'h-fit w-40 min-w-40 shrink-0 md:sticky md:top-[calc(var(--toc-top-offset)+8px)]!'
5249 ) }
5350 >
5451 < time
You can’t perform that action at this time.
0 commit comments