Skip to content

Commit 74eb433

Browse files
committed
TimeTravel: move the "More" button
1 parent 06307a1 commit 74eb433

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/packages/frontend/frame-editors/time-travel-editor/load-more-history.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function LoadMoreHistory({
4444
return (
4545
<>
4646
<Tooltip
47+
placement={"bottom"}
4748
title={
4849
disabled
4950
? "All TimeTravel history is loaded"

src/packages/frontend/frame-editors/time-travel-editor/time-travel.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ export function TimeTravel(props: Props) {
499499
{renderRevertFile()}
500500
{renderOpenSnapshots()}
501501
{renderExport()}
502-
{renderLoadMoreHistory()}
503502
</Space.Compact>
504503
{(versions?.size ?? 0) > 0 && (
505504
<>
@@ -513,10 +512,21 @@ export function TimeTravel(props: Props) {
513512

514513
const renderTimeSelect = () => {
515514
return (
516-
<>
517-
{renderNavigationSlider()}
518-
{renderRangeSlider()}
519-
</>
515+
<div style={{ display: "flex" }}>
516+
<div
517+
style={{
518+
display: "flex",
519+
justifyContent: "center",
520+
alignItems: "center",
521+
}}
522+
>
523+
{renderLoadMoreHistory()}
524+
</div>
525+
<div style={{ flex: 1 }}>
526+
{renderNavigationSlider()}
527+
{renderRangeSlider()}
528+
</div>
529+
</div>
520530
);
521531
};
522532

@@ -534,6 +544,7 @@ export function TimeTravel(props: Props) {
534544
padding: "5px 0 5px 15px",
535545
borderTop: "1px solid #ddd",
536546
background: "#fafafa",
547+
marginLeft: "5px",
537548
}}
538549
>
539550
{subject}

0 commit comments

Comments
 (0)