Module:UpdateExcerpt: Difference between revisions

No edit summary
Tag: Reverted
Undo revision 86569 by Cronos (talk)
Tag: Undo
Line 30: Line 30:
     end
     end


    -- Calculate the dynamic height
     local maxHeight = maxLines * 1.7
     local maxHeight = maxLines * 1.7


     -- Combined the class with just the dynamic inline max-height style
     local html = string.format(
local html = string.format(
        '<div style="flex:1; min-height:0; overflow-y:auto; max-height:%.1fem; padding:14px 18px; font-family: sans-serif; font-size:0.92em; line-height:1.7;">\n__NOEDITSECTION__\n%s\n</div>',
    '<div class="update-excerpt__body" style="--excerpt-max-height:%.1fem;">\n__NOEDITSECTION__\n%s\n</div>',
        maxHeight,
    maxHeight,
        frame:preprocess(notesRaw)
    frame:preprocess(notesRaw)
    )
)


     return html
     return html