fix(view): do not turn documentation tables into call chips
Keep descriptive table labels non-callable and suppress call annotations on table blocks. This removes the collapsed call {步骤...} chip while preserving the table and the return 950 chips at the actual foreign/writeback calls.
This commit is contained in:
1 parent
78922102e4
commit
4da07c1b26
3 files changed
+12
-6
No files matched your search
@@ -342,8 +342,14 @@ fn render_table_block(
|
||||
html.push_str("</table>");
|
||||
// Annots on first table line (bind of collection).
|
||||
if let Some(list) = by_line.get(&first_line) {
|
||||
if !list.is_empty() {
|
||||
let owned: Vec<ViewAnnot> = list.iter().map(|a| (*a).clone()).collect();
|
||||
// A table is already its own readable value; a call chip would collapse
|
||||
// the whole collection into an ellipsis. Keep only non-call chips.
|
||||
let owned: Vec<ViewAnnot> = list
|
||||
.iter()
|
||||
.filter(|a| a.kind != crate::view::annot::AnnotKind::Call)
|
||||
.map(|a| (*a).clone())
|
||||
.collect();
|
||||
if !owned.is_empty() {
|
||||
html.push_str(&render_annot_band(&owned, MAX_VISIBLE_ANNOTS));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user