diff --git a/engine/app/assets/stylesheets/coplan/application.css b/engine/app/assets/stylesheets/coplan/application.css index 0ded574b..15775cf7 100644 --- a/engine/app/assets/stylesheets/coplan/application.css +++ b/engine/app/assets/stylesheets/coplan/application.css @@ -1673,6 +1673,11 @@ img.avatar { cursor: pointer; } +.markdown-rendered .task-list-item-content { + flex: 1; + min-width: 0; +} + .markdown-rendered .task-list-item input[type="checkbox"] { cursor: pointer; flex-shrink: 0; diff --git a/engine/app/helpers/coplan/markdown_helper.rb b/engine/app/helpers/coplan/markdown_helper.rb index 0505d6af..b9120cbb 100644 --- a/engine/app/helpers/coplan/markdown_helper.rb +++ b/engine/app/helpers/coplan/markdown_helper.rb @@ -34,7 +34,7 @@ module MarkdownHelper # version. Bump it whenever the rendering pipeline changes output for the # same input (new tags, attribute changes, checkbox wiring, etc.), or # stale HTML will be served from cache. - RENDER_CACHE_VERSION = 11 + RENDER_CACHE_VERSION = 12 # Matches `[@username](mention:username)` where the bracket text and link # target encode the same username. Username allows letters, digits, dots, @@ -218,9 +218,22 @@ def make_checkboxes_interactive(html, content, line_offset: 0) li.add_class("task-list-item") - # Wrap li contents in a