react-component / react-component/progress

Line Component Rendering Incorrectly at Non-100% Zoom in Safari

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

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

主要言語
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.

CodeSandbox Link

Relevant Screenshots:
For 100% zoom in safari:

Image

For 50% zoom in Safari:

Image

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

調査の方向性

rc-progress の Line component から始め、リンクされた CodeSandbox を使って Safari でズーム率 50% および 100% の状態で問題を再現します。パーセント値が SVG の進捗表示をどのように決定するかを追跡し、その後、100% 以外のズーム率でも 50% などの中間値が正しく塗りつぶされることを、既存の 100% での動作を変更せずに確認します。

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

評価

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

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

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