fix(content): indent world datapack previews
This commit is contained in:
1 parent
30a9f60830
commit
fb976f1cb9
2 files changed
+6
-3
No files matched your search
@@ -53,7 +53,10 @@ fn world_cards_preview_up_to_three_datapacks() {
|
|||||||
.collect(),
|
.collect(),
|
||||||
});
|
});
|
||||||
|
|
||||||
assert_eq!(lines, ["1.21.1 • 4.0 MB", "• A", "• B", "• C", "+1 more"]);
|
assert_eq!(
|
||||||
|
lines,
|
||||||
|
["1.21.1 • 4.0 MB", " • A", " • B", " • C", " +1 more"]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -2114,10 +2114,10 @@ fn world_descriptions(details: &WorldDetails) -> Vec<String> {
|
|||||||
.datapacks
|
.datapacks
|
||||||
.iter()
|
.iter()
|
||||||
.take(3)
|
.take(3)
|
||||||
.map(|name| format!("• {name}")),
|
.map(|name| format!(" • {name}")),
|
||||||
);
|
);
|
||||||
if details.datapacks.len() > 3 {
|
if details.datapacks.len() > 3 {
|
||||||
lines.push(format!("+{} more", details.datapacks.len() - 3));
|
lines.push(format!(" +{} more", details.datapacks.len() - 3));
|
||||||
}
|
}
|
||||||
lines
|
lines
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user