MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / smashTruncationStyle

Function smashTruncationStyle

entrypoints/main/dom.ts:458–464  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

456
457// 移除截断样式
458export function smashTruncationStyle(node: any) {
459 // 1. 先调用 checkAndRemoveStyle 移除 webkitLineClamp 属性
460 // 2. 将节点的相关样式设为 'unset'
461 checkAndRemoveStyle(node, 'webkitLineClamp');
462 node.style.webkitLineClamp = 'unset';
463 node.style.maxHeight = 'unset';
464}

Callers 1

bilingualAppendChildFunction · 0.90

Calls 1

checkAndRemoveStyleFunction · 0.85

Tested by

no test coverage detected