Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

xkcd: center the alt text block, keep its lines left-aligned

已关闭
#259 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

area:plugins enhancement

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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

txoof/PaperPi 的其他 Issue

查看 txoof/PaperPi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。