WIP: Clean up the outline view #16
@ -102,7 +102,7 @@ details[open]:has(li) .elt-switch::after {
|
||||
.elt-rep > div {
|
||||
padding: 2px 0px 0px 0px;
|
||||
font-size: 10pt;
|
||||
text-align: center;
|
||||
text-align: right;
|
||||
width: 56px;
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ fn ElementOutlineItem(key: usize, element: assembly::Element) -> View {
|
||||
});
|
||||
let label = element.label.clone();
|
||||
let rep_components = element.rep.iter().map(|u| {
|
||||
let u_coord = u.to_string().replace("-", "\u{2212}");
|
||||
let u_coord = format!("{:.3}", u).replace("-", "\u{2212}");
|
||||
View::from(div().children(u_coord))
|
||||
}).collect::<Vec<_>>();
|
||||
let constrained = element.constraints.len() > 0;
|
||||
|
Loading…
Reference in New Issue
Block a user