From 26940a6bce0558e8eada4f9354b3bc40a0b5c0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Gon=C3=A7alves=20Marchi?= Date: Tue, 16 Jan 2024 16:10:41 -0300 Subject: [PATCH 1/3] update(Storage): Do not move file position when rename it, just when upload new files (#1710) --- .../warp_runner/manager/commands/constellation_commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/warp_runner/manager/commands/constellation_commands.rs b/common/src/warp_runner/manager/commands/constellation_commands.rs index 540f449acbc..07464ca6726 100644 --- a/common/src/warp_runner/manager/commands/constellation_commands.rs +++ b/common/src/warp_runner/manager/commands/constellation_commands.rs @@ -277,8 +277,8 @@ fn get_items_from_current_directory( .filter_map(|item| item.get_file().ok()) .collect::>(); - directories.sort_by_key(|b| std::cmp::Reverse(b.modified())); - files.sort_by_key(|b| std::cmp::Reverse(b.modified())); + directories.sort_by_key(|b| std::cmp::Reverse(b.creation())); + files.sort_by_key(|b| std::cmp::Reverse(b.creation())); let max_size = warp_storage.max_size(); let current_size = warp_storage.current_size(); From 2b678b98e1b13ea45473b32b2ed6dbe0b2b7acec Mon Sep 17 00:00:00 2001 From: Matt Wisniewski Date: Tue, 16 Jan 2024 14:28:12 -0500 Subject: [PATCH 2/3] chore(Loader): Add comet loader image (#1721) --- icons/src/icons/outline/loader.svg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/icons/src/icons/outline/loader.svg b/icons/src/icons/outline/loader.svg index ecd2025e3d7..480e8cd4ab4 100644 --- a/icons/src/icons/outline/loader.svg +++ b/icons/src/icons/outline/loader.svg @@ -1,3 +1,4 @@ - - \ No newline at end of file + + + \ No newline at end of file From 6b68d8e9a68c7d180d89d083260f2d9ce91fd2b5 Mon Sep 17 00:00:00 2001 From: Matt Wisniewski Date: Tue, 16 Jan 2024 14:39:48 -0500 Subject: [PATCH 3/3] Comet loader (#1722) --- kit/src/elements/loader/mod.rs | 11 ++++++++++- kit/src/elements/loader/style.scss | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/kit/src/elements/loader/mod.rs b/kit/src/elements/loader/mod.rs index ad3323f806e..58b4950aa96 100644 --- a/kit/src/elements/loader/mod.rs +++ b/kit/src/elements/loader/mod.rs @@ -6,13 +6,22 @@ use dioxus::prelude::*; pub struct Props { #[props(optional)] spinning: Option, + #[props(optional)] + large: Option, +} + +pub fn is_large(cx: &Scope) -> bool { + if let Some(f) = cx.props.large.as_ref() { + return *f; + } + false } #[allow(non_snake_case)] pub fn Loader(cx: Scope) -> Element { cx.render(rsx!( div { - class: "loader", + class: if is_large(&cx) { "loader large" } else { "loader" }, div { class: "spin", IconElement { icon: Icon::Loader } diff --git a/kit/src/elements/loader/style.scss b/kit/src/elements/loader/style.scss index 2de80a389ee..68e132d6b50 100644 --- a/kit/src/elements/loader/style.scss +++ b/kit/src/elements/loader/style.scss @@ -18,6 +18,24 @@ fill: transparent; stroke: var(--text-color); } + + &.large { + width: 60px; + height: 60px; + + .spin { + width: 60px; + height: 60px; + top: 30px; + left: 30px; + } + + svg { + height: 60px; + width: 60px; + stroke-width: 0.02rem; + } + } } @keyframes spin {