v0.36.9
This commit is contained in:
1 parent
fe945f51a5
commit
88728bdd5a
13 files changed
+320
-17
No files matched your search
@@ -58,6 +58,9 @@ fn reconcile_dashboard_widgets(prefs: &mut AdminPreferences) {
|
||||
}
|
||||
}
|
||||
|
||||
fn default_admin_dashboard_auto_fit() -> bool {
|
||||
true
|
||||
}
|
||||
fn default_file_log_sort() -> String {
|
||||
"time".to_owned()
|
||||
}
|
||||
@@ -141,6 +144,9 @@ struct AdminPreferences {
|
||||
dashboard_hidden_widgets: Vec<String>,
|
||||
#[serde(default)]
|
||||
dashboard_widget_sizes: Option<std::collections::BTreeMap<String, u8>>,
|
||||
/// Re-flow the custom Overview layout for the current screen width (on by default).
|
||||
#[serde(default = "default_admin_dashboard_auto_fit")]
|
||||
dashboard_auto_fit: bool,
|
||||
/// Optional per-card heights in Overview row units (1..=32, a compact stat card is 2); missing cards size to content.
|
||||
#[serde(default)]
|
||||
dashboard_widget_heights: Option<std::collections::BTreeMap<String, u8>>,
|
||||
@@ -202,6 +208,7 @@ impl Default for AdminPreferences {
|
||||
dashboard_hidden_widgets: default_hidden_dashboard_widgets(),
|
||||
dashboard_widget_sizes: None,
|
||||
dashboard_widget_heights: None,
|
||||
dashboard_auto_fit: true,
|
||||
file_log_columns: default_file_log_columns(),
|
||||
file_log_sort: default_file_log_sort(),
|
||||
file_log_descending: default_file_log_descending(),
|
||||
|
||||
Reference in new issue
Block a user