max / makeover-webview
1 file changed,
+7 insertions,
-13 deletions
| @@ -964,14 +964,8 @@ | |||
| 964 | 964 | css, | |
| 965 | 965 | ".{table} {{\n display: table;\n width: 100%;\n}}" | |
| 966 | 966 | ); | |
| 967 | - | let _ = writeln!( | |
| 968 | - | css, | |
| 969 | - | ".{head},\n.{row} {{\n display: table-row;\n}}" | |
| 970 | - | ); | |
| 971 | - | let _ = writeln!( | |
| 972 | - | css, | |
| 973 | - | ".{heading},\n.{cell} {{\n display: table-cell;\n}}" | |
| 974 | - | ); | |
| 967 | + | let _ = writeln!(css, ".{head},\n.{row} {{\n display: table-row;\n}}"); | |
| 968 | + | let _ = writeln!(css, ".{heading},\n.{cell} {{\n display: table-cell;\n}}"); | |
| 975 | 969 | ||
| 976 | 970 | // A content column shrinks to what is in it. `width: 1%` is how a CSS table | |
| 977 | 971 | // is told that: auto layout hands the slack to the columns that asked for | |
| @@ -998,7 +992,10 @@ | |||
| 998 | 992 | // Essential columns have no rule at all, because never dropping is what not | |
| 999 | 993 | // being mentioned already means. | |
| 1000 | 994 | for (size, drops) in [ | |
| 1001 | - | (SizeClass::Compact, &["cell-drops-first", "cell-drops-next"][..]), | |
| 995 | + | ( | |
| 996 | + | SizeClass::Compact, | |
| 997 | + | &["cell-drops-first", "cell-drops-next"][..], | |
| 998 | + | ), | |
| 1002 | 999 | (SizeClass::Medium, &["cell-drops-first"][..]), | |
| 1003 | 1000 | ] { | |
| 1004 | 1001 | let selectors: Vec<String> = drops | |
| @@ -1347,10 +1344,7 @@ | |||
| 1347 | 1344 | // actions used to be the other half of this test and are not gated any | |
| 1348 | 1345 | // more, because they are not hidden any more: a rule that reveals | |
| 1349 | 1346 | // nothing needs no capability answer. | |
| 1350 | - | let gated: Vec<&str> = css | |
| 1351 | - | .lines() | |
| 1352 | - | .filter(|line| line.contains(":hover")) | |
| 1353 | - | .collect(); | |
| 1347 | + | let gated: Vec<&str> = css.lines().filter(|line| line.contains(":hover")).collect(); | |
| 1354 | 1348 | assert!(!gated.is_empty(), "{css}"); | |
| 1355 | 1349 | for line in gated { | |
| 1356 | 1350 | let indent = line.len() - line.trim_start().len(); |