application shell Settings: the settings list and the opened setting scroll as one page - a setting picked low in a long list opens out of view

未关闭 适合新手
#8,636 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
css, html
领域
frontend

调研方向

打开 components/resources/resources-application/src/main/resources/META-INF/dirigible/application/views/_settings.html,将其左侧拆分面板与 template-application-ui-harmonia-java/ui/shell/settings.html.template 第 18-19 行进行比较。限制面板和列表的高度,使列表自行滚动,然后确认右侧面板的本地页面(region-language、tenant-configuration、document-numbering)和 iframe 保持各自的滚动。当长度超过窗口的列表在矮窗口和高窗口中都能打开一个较低的条目,并且该设置从其顶部可见时,即完成。

由索引模型根据 Issue 内容生成。

描述

Problem

In the application shell's Settings (the aggregated shell, e.g. a BusinessIntents "Склад" app -> Настройки), the list of settings on the left and the opened setting on the right scroll together, as one page.

With many modules the list is long (20+ entries). Choosing an entry low in it (Payment Methods is the 15th) leaves the page scrolled down, so the opened setting on the right starts above the visible area: the right side looks blank until the user scrolls back up.

Seen during a store test run (BusinessIntents store modules, Bulgarian UI).

Cause

components/resources/resources-application/src/main/resources/META-INF/dirigible/application/views/_settings.html, the left split panel:

<div x-h-split-panel data-size="25%" data-min="200">
  <div class="vbox gap-2 p-3">
    ...
    <ul x-h-list :aria-label="...">

Neither the panel's wrapper nor the list has a height bound or overflow-auto, so a long list overflows the panel and the scroll lands on an ancestor shared by both columns.

The per-project settings page generated for a single module already does this right: template-application-ui-harmonia-java/ui/shell/settings.html.template:18-19

<div class="vbox size-full min-w-0">
  <ul x-h-list class="flex-1 overflow-auto" ...>

Steps to reproduce

  1. Publish enough modules that the application shell's Settings lists more entries than fit the window height (e.g. the BusinessIntents store set).
  2. Open Settings, scroll the list down and pick an entry near the bottom.

Expected: the list scrolls on its own; the opened setting fills the right side from its top.
Actual: the whole page scrolls; the right side shows nothing until scrolled back up.

Suggested fix

  • Left panel wrapper: vbox gap-2 p-3 size-full min-h-0, and the list class="flex-1 overflow-auto", as in the per-project settings.html.template.
  • Check the right panel keeps its own scroll for the locally rendered pages (region-language, tenant-configuration, document-numbering, ...), which already carry size-full overflow-auto, and the iframe (absolute, full size).
  • Verify in a browser with a list longer than the window, in both a short and a tall window.
主要语言
Java
星标
278
派生
97
平均合并
15 小时 33 分钟
30 天内合并 PR
301

环境准备

从这里开始

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

eclipse-dirigible/dirigible 的其他 Issue

查看 eclipse-dirigible/dirigible 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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