Rich text editor: list items have no gap but are spaced out on the page
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 app/frontend/javascript/rhino/custom-editor.css 以及 issue #2821 中为顶层段落添加的间距着手。将编辑器样式与 app/views/layouts/action_text/contents/_content.html.erb 中使用的正文间距进行比较,然后检查列表项和块引用。编辑器中的列表间距与已发布页面一致时即完成。
由索引模型根据 Issue 内容生成。
描述
🤖 From Claude:
List items have no gap in the rich text editor but are spaced out on the published page, so the editor doesn't show what readers will see.
- Cause: Rhino's
trix.csssets.trix-content p { margin: 0 }; list items wrap their text in<p>, so the editor drops prose's list spacing. - Page: the rendered body uses
prose(app/views/layouts/action_text/contents/_content.html.erb), which spacesli > p. - Example fix: #2821 did the same for top-level paragraphs in
app/frontend/javascript/rhino/custom-editor.css; extend it to list items (and check blockquotes) using prose's values.
- 主要语言
- Ruby
- 星标
- 15
- 派生
- 28
- 平均合并
- 1 天 12 分钟
- 30 天内合并 PR
- 262
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rubyforgood/awbw 的其他 Issue
-
blocked
难度 2/5 1-3 小时 新手友好度 68/100
rubyforgood/awbw#2824 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
rubyforgood/awbw#2160 ·
维护者通常 1 天内回复
-
Update callout faq defualt text when the new person subscription launches可能已有人在做 @maebeale 于 79 天前认领。 未关闭blocked
难度 2/5 1-3 小时 新手友好度 72/100
rubyforgood/awbw#2095 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
rubyforgood/awbw#2088 ·
维护者通常 1 天内回复
-
Published story edit: paragraph spacing too large by default, hard to read可能重新可做 关联的 PR 已关闭且未合并。 未关闭enhancement stakeholder-request stories
难度 2/5 1-3 小时 新手友好度 65/100
rubyforgood/awbw#1521 ·
维护者通常 1 天内回复
相似的 Issue
-
L: javascript
难度 2/5 1-3 小时 新手友好度 72/100
dependabot/dependabot-core#16744 ·
维护者通常 1 天内回复
-
area:core-lib P2 size:S
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
bug P2
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复