fix(app-iced): M157 r2 详情列加滚动区 + 启动参数卡对齐信息卡(D30 复审)
- 详情列(含卡片与动作行)套 scrollable:1180×1000 下被裁的内容可达、滚动条与左列同一套几何;右侧 X2 内缩,卡片描边不再被滚动条压住 - 启动参数卡改用 frame::card(card_padding 21 + OutlinedCard 描边),标题 LabelMedium 不加粗——与相邻信息卡同款 - 段间距 X3→X2,卡片不再比内容长 - 演示夹具补 Game arguments(--fullscreen) - presenter host 单测临时目录加序号(同一进程并行用例互删导致 flake)
This commit is contained in:
1 parent
e2021645d7
commit
c76a1437e6
5 files changed
+56
-23
No files matched your search
@@ -203,6 +203,7 @@ mod tests {
|
||||
/// 最小的 tempdir(与本 crate 其它 host 测试同款:不引第三方 tempfile)。
|
||||
mod tempdir {
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::{AtomicU64, Ordering};
|
||||
|
||||
pub struct Dir {
|
||||
pub path: PathBuf,
|
||||
@@ -210,7 +211,14 @@ mod tests {
|
||||
|
||||
impl Dir {
|
||||
pub fn new(tag: &str) -> Self {
|
||||
let path = std::env::temp_dir().join(format!("{tag}-{}", std::process::id()));
|
||||
// 每个用例一个目录:同一进程里跑多个用例时,只用 PID 命名会互相 `remove_dir_all`
|
||||
// (并行跑就是「系统找不到指定的路径」——M157 r2 实测)。
|
||||
static COUNTER: AtomicU64 = AtomicU64::new(0);
|
||||
let seq = COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
let path = std::env::temp_dir().join(format!(
|
||||
"{tag}-{}-{seq}",
|
||||
std::process::id()
|
||||
));
|
||||
let _ = std::fs::remove_dir_all(&path);
|
||||
std::fs::create_dir_all(&path).expect("建临时目录");
|
||||
Self { path }
|
||||
|
||||
Reference in new issue
Block a user