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

未关闭
#229 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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
平均合并
8 小时 30 分钟
30 天内合并 PR
119

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

egdev6/quorb 的其他 Issue

查看 egdev6/quorb 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。