bug(detail): el panel de detalle no ajusta su ancho al área de trabajo (seguimiento de #228)

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

Start with fitPanel and detailBounds in src/lib/detail-panel.ts, where the existing proportional height fit is, and with panelRect in src/lib/dock.ts, which takes the width from panelWidthFor(orbSize) × textScale. Done means the panel stays inside area.w at large text scales and when the strip sits on a side edge, with the height behaviour unchanged. The issue leaves the approach open (extend the proportional fit to the horizontal axis, taking the stricter of the two factors), so agree on it before coding.

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

説明

Seguimiento de #228, como se acordó en el hilo.

Qué pasa

El panel de detalle ajusta su altura al área de trabajo (fitPanel lo encoge cuando no cabe), pero nada ajusta su ancho a area.w. Con la escala de texto de #228, el ancho en unidades de monitor es panelWidthFor(orbSize) × textScale. Con un tamaño de texto grande (por ejemplo 150-225 %) en una pantalla estrecha, o con la tira en un borde lateral, el panel podría salirse del área de trabajo.

No se ha observado en los casos reales de #228 (106 %): es un límite conocido que queda fuera de esa issue.

Qué se espera

Que el panel nunca se salga del área de trabajo en ancho, igual que ya ocurre en altura.

Notas

  • Dónde: fitPanel y detailBounds (src/lib/detail-panel.ts), panelRect (src/lib/dock.ts).
  • Una posible vía es extender el ajuste proporcional de fitPanel al eje horizontal, tomando el factor más restrictivo de los dos ejes. Se decide al abordarla.
主要言語
TypeScript
スター
10
フォーク
2
平均マージ
7時間 52分
マージ済み PR(30日)
126

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

egdev6/quorb のほかの issue

egdev6/quorb の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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