mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-14 16:33:25 +00:00
fixing stickyness of the date (#15964)
GitOrigin-RevId: 9bc9bc1323f944a7c57e0bb92724063d8da44e89
This commit is contained in:
parent
abba46978d
commit
9618d2bf20
2 changed files with 4 additions and 5 deletions
|
@ -75,15 +75,13 @@ function HistoryVersion({
|
|||
) : null}
|
||||
{update.meta.first_in_day ? (
|
||||
<div
|
||||
className={classNames({
|
||||
'version-element-within-selected ':
|
||||
className={classNames('history-version-day', {
|
||||
'version-element-within-selected':
|
||||
selectionState === 'withinSelected' ||
|
||||
selectionState === 'lowerSelected',
|
||||
})}
|
||||
>
|
||||
<time className="history-version-day">
|
||||
{relativeDate(update.meta.end_ts)}
|
||||
</time>
|
||||
<time>{relativeDate(update.meta.end_ts)}</time>
|
||||
</div>
|
||||
) : null}
|
||||
<div
|
||||
|
|
|
@ -91,6 +91,7 @@ history-root {
|
|||
}
|
||||
|
||||
.history-version-day {
|
||||
background-color: white;
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
|
|
Loading…
Reference in a new issue