xkcd: center the alt text block, keep its lines left-aligned
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #283 来自 @txoof-bot —— 已合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- embedded-iot
调研方向
Start with the alt block in src/paperpi/plugins/xkcd_comic/layouts.py, which currently uses align "left" across the full width. Decide whether a narrower block with left and right padding is enough, or whether epdlib needs a "centered block, left-aligned lines" option (that would be in txoof/epdlib). Done when the default layout's alt text is centered as a block, left-aligned inside it, and the sample images in tests/images/ (9.7", 7.5", 5.65") are regenerated.
由索引模型根据 Issue 内容生成。
描述
Seen in the web interface demo (2026-10-10, virtual screen 1200x825).
Problem: in the default layout comic_title_alttext, the comic's alt text (its hover text) doesn't sit well under the comic: the text block uses the whole screen width with its lines aligned to the left, so it looks off-center.
Wanted: the alt text as a block centered under the comic, with its lines still left-aligned inside that block (like a centered paragraph).
Where: src/paperpi/plugins/xkcd_comic/layouts.py: the alt block uses align: "left" across the full width. This probably needs either a narrower centered block (for example padding left and right) or an epdlib option for "centered block, left-aligned lines" (then the work is partly in txoof/epdlib).
Done when: the default layout's alt text is centered as a block and left-aligned inside it, on the 9.7", 7.5" and 5.65" sample images (tests/images/), with the sample images made again.
- 主要语言
- Python
- 星标
- 205
- 派生
- 17
- 平均合并
- 5 小时 42 分钟
- 30 天内合并 PR
- 50
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
txoof/PaperPi 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
area:core enhancement hardware
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
area:core enhancement
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
area:web needs-decision
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
Path subtraction removes repeated suffix characters instead of one suffix可能已有人在做 @Gwerdonatus 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
joke2k/django-environ#671 ·
-
good first issue help wanted windows
难度 2/5 1-3 小时 新手友好度 80/100
-
test_pgbouncer deploys the server under test from Charmhub instead of the local build (track/1.31)未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
canonical/temporal-k8s-operator#195 · 1 条评论 ·
维护者通常 4 天内回复
-
`burr` fails to start when the Python path has a space in it可能已有人在做 @enekoreto 今天认领。 未关闭status/needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 5 天内回复
-
device support request
难度 2/5 1-3 小时 新手友好度 68/100
zigpy/zha-device-handlers#5461 ·
维护者通常 4 天内回复