react-component / react-component/progress
Line Component Rendering Incorrectly at Non-100% Zoom in Safari
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 706
- フォーク
- 161
- 平均マージ
- 3時間 29分
- マージ済み PR(30日)
- 2
説明
The Line component from rc-progress does not render correctly at non-100% zoom levels (mostly with less than 100%) in Safari.
Specifically:
When the browser zoom is set to 50%, the progress bar does not fill according to the percent value provided.
For example, if percent is 50%, the progress bar should be half-filled, but it shows random or incorrect filling.
This issue does not occur at 100% zoom.
Steps to Reproduce
Open Safari and set the browser zoom to 50%.
Use the Line component from rc-progress with a percent value (e.g., 50%).
Observe that the progress bar does not fill correctly according to the percent value.
Expected Behavior
The Line component should render the progress bar correctly at any zoom level, filling the bar according to the percent value provided.
Actual Behavior
At 50% zoom, the progress bar does not fill correctly. For example:
If percent is 50%, the progress bar may show random or incorrect filling.
If percent is 100%, the progress bar works correctly.
Relevant Screenshots:
For 100% zoom in safari:
For 50% zoom in Safari:
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
rc-progress の Line component から始め、リンクされた CodeSandbox を使って Safari でズーム率 50% および 100% の状態で問題を再現します。パーセント値が SVG の進捗表示をどのように決定するかを追跡し、その後、100% 以外のズーム率でも 50% などの中間値が正しく塗りつぶされることを、既存の 100% での動作を変更せずに確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100