harmonia list: the record sheet's title collapses to 0 height when the record's properties overflow the sheet

Đang mở Phù hợp với người mới
#8,570 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@NicoleNG18 đang làm issue này rồi.

Từ ngày 10/11/2026.

  • #8571 của @NicoleNG18 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
css, html, java
Lĩnh vực
frontend

Hướng nghiên cứu

Mở template-application-ui-harmonia-java/ui/perspective/manage/list-view.html.template ở khoảng dòng 616 và đọc các phần tử con trực tiếp của phần thân trang tính, kiểm tra xem có phần tử con nào khác kết hợp overflow bị ẩn với việc co lại theo flex hay không. Thêm shrink-0 vào tiêu đề như đề xuất, sau đó xác minh rằng tiêu đề vẫn hiển thị và phần thân trang tính cuộn được khi nội dung tràn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

In a generated Harmonia manage list, the record sheet (the drawer that opens on a row click) loses its title when the record's properties do not fit the sheet's height. The title is rendered with the right text, but its height collapses to 0 px.

Example (application shell, Store lens): Settings → Products → click a product. The sheet shows the fields but no "Продукт" title. Goods Receipts → click GR00000001 shows "Складов приход". The difference is not the entity. It is whether the content overflows:

Sheet Available height Content height Title height
Goods Receipt 643 px 643 px (fits) 26.5 px, visible
Product 699 px 728 px (overflows) 0 px, invisible

The same Product sheet keeps its title when there is more room (the standalone products app, a taller window). So any entity with many properties loses the title on a short enough screen.

Cause

template-application-ui-harmonia-java/ui/perspective/manage/list-view.html.template:616:

<div class="vbox min-h-0 flex-1 gap-4 overflow-auto p-4">
  <h2 x-h-text.h4 class="truncate" x-text="sheetTitle()"></h2>
  ...

The sheet body is a flex column with overflow-auto. The title carries truncate (overflow: hidden), so its automatic minimum height is 0. When the body overflows, the flex layout shrinks the title, which has the default flex-shrink: 1, all the way to 0 instead of scrolling.

Verified in the browser: setting flex-shrink: 0 on the h2 brings it back to 28 px and the body scrolls.

Suggested fix

Add shrink-0 to the sheet title (class="truncate shrink-0"). Check the other direct children of that body for the same overflow: hidden + shrinkable combination.

Ngôn ngữ chính
Java
Star
278
Fork
97
Merge trung bình
12 giờ 43 phút
Pull request đã merge (30 ngày)
296

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-dirigible/dirigible

Tất cả issue của eclipse-dirigible/dirigible

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.