Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[CodeBlock] Fix token rendering and sub-pixel border

オープン
#606 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず CodeBlock コンポーネントを見つけ、行とトークンのレンダリング、maxLines の処理、header と collapse-trigger のスタイルを確認します。想定されている安定したキー、maxLines の公開時の動作、border の値を確認し、3 つすべての記載された改善に対応できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

component triage

Summary

Minor improvements to the CodeBlock component.

Improvements

2. Array index as key in token rendering

Both line and token maps use array index as key. For stable rendering, this is acceptable for static content but could cause issues with dynamic content updates.

3. maxLines off-by-one compensation

The context adds +1 to maxLines ("to compensate for the absolute collapse trigger"). This leaks implementation detail into the API — consumers pass maxLines={5} but 6 lines are stored internally.

4. Sub-pixel border value

Uses border: 0.5px solid in header and collapse trigger styles.

Moved to Cross-Cutting Issues

The following items have been moved to cross-cutting issues that address them across all components:

  • Remove !important declarations (#678)
主要言語
TypeScript
スター
70
フォーク
13
平均マージ
4日 6時間
マージ済み PR(30日)
10

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

raystack/apsara のほかの issue

raystack/apsara の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。