Module:UpdateExcerpt: Difference between revisionsGive feedback
No edit summary |
No edit summary Tag: Reverted |
||
| Line 30: | Line 30: | ||
end | end | ||
-- Calculate the dynamic height | |||
local maxHeight = maxLines * 1.7 | local maxHeight = maxLines * 1.7 | ||
local html = string.format( | -- Combined the class with just the dynamic inline max-height style | ||
local html = string.format( | |||
'<div class="update-excerpt__body" style="--excerpt-max-height:%.1fem;">\n__NOEDITSECTION__\n%s\n</div>', | |||
maxHeight, | |||
frame:preprocess(notesRaw) | |||
) | |||
return html | return html | ||