[CodeBlock] Fix token rendering and sub-pixel border
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
まず CodeBlock コンポーネントを見つけ、行とトークンのレンダリング、maxLines の処理、header と collapse-trigger のスタイルを確認します。想定されている安定したキー、maxLines の公開時の動作、border の値を確認し、3 つすべての記載された改善に対応できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
raystack/apsara のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 75/100
-
Docs: hand-duplicated props tables drift risk, missing a11y sections, no per-component changelog オープンenhancement global
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
bug global
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
raystack/apsara の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·