保留详情成品分屏尺寸
This commit is contained in:
parent
247595a3a7
commit
e5ffe1d4e8
@ -31,7 +31,7 @@ pub(super) fn detail_screens(artifacts: &[Artifact]) -> R<Vec<Value>> {
|
||||
}
|
||||
expected_width = Some(width);
|
||||
total += u64::from(height);
|
||||
let count = height.div_ceil(3000).max(1);
|
||||
let count = if height <= 4608 { 1 } else { height.div_ceil(3000) };
|
||||
let chunk = height / count;
|
||||
for index in 0..count {
|
||||
let h = if index + 1 == count { height - chunk * index } else { chunk };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user