MCPcopy Create free account
hub / github.com/GCWing/BitFun / block_content_max_width

Function block_content_max_width

src/apps/cli/src/ui/tool_cards.rs:266–268  ·  view source on GitHub ↗
(available_width: u16)

Source from the content-addressed store, hash-verified

264// ============ Inline Tool Rendering ============
265
266fn block_content_max_width(available_width: u16) -> usize {
267 available_width.saturating_sub(8).max(1) as usize
268}
269
270fn wrap_display_lines(text: &str, max_width: usize) -> Vec<String> {
271 let mut out = Vec::new();

Callers 9

render_bash_blockFunction · 0.85
render_edit_blockFunction · 0.85
render_write_blockFunction · 0.85
render_delete_blockFunction · 0.85
render_task_blockFunction · 0.85
render_question_blockFunction · 0.85
render_plan_blockFunction · 0.85
render_generic_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected