[GUI] 0.2.24's liquid.css widens replies to 88ch, so app/host's measure check fails at 107 characters per line

Đang mở Phù hợp với người mới
#7,665 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 4 ngày

Chưa có ai nhận issue này.

Đá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
76/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ệ
bun, css, javascript
Lĩnh vực
desktop, frontend, testing

Hướng nghiên cứu

Đọc app/host/src/styles/liquid.css quanh dòng 2598 và 4864, sau đó kiểm tra app/host/scripts/measure.mjs và các lựa chọn chiều rộng Reply trong #5066 để xác định chiều rộng dự kiến. Chạy bun run measure trong app/host để tái hiện lỗi. Hoàn tất khi chiều rộng Reply dự kiến khớp với bước kiểm tra measure và số ký tự được báo cáo nằm trong khoảng đã cấu hình.

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

Mô tả

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

On 0.2.24, bun run check in app/host stops at its measure step: a line of assistant prose is 107 characters wide, and scripts/measure.mjs requires 45–75.

reading measure (target 45–75 characters per line)

  10px · normal    107 chars/line at 10px  FAIL
  10px · focus     107 chars/line at 10px  FAIL
  16px · normal    107 chars/line at 16px  FAIL
  16px · focus     107 chars/line at 16px  FAIL
  22px · normal     78 chars/line at 22px  FAIL
  22px · focus     107 chars/line at 22px  FAIL

reading measure: 6 failure(s)

The width comes from two rules that 0.2.24 adds to app/host/src/styles/liquid.css. They load after app.css and replace its reply widths:

  • line 2598, in the :root block: --st-measure: 88ch; (app.css: 56ch, the Comfortable choice of Settings > Reply width from #5066)
  • line 4864: :root[data-measure='wide'] { --st-measure: 112ch; } (app.css: 72ch)

With those two rules removed and nothing else changed, the same run gives 68 characters per line at every size and both modes, and all five steps of bun run check pass.

I could not tell which side is intended. If the wider reply is the new design, measure.mjs's band and the Reply width choices from #5066 no longer describe it. If it is not, the two overrides are what changed it.

Smallest steps or command that reproduce it
  1. In app/host on v0.2.24: bun install, then bun run dev with STRATA_HOME pointed at an empty folder.
  2. Dismiss setup: curl -X POST -H 'Content-Type: application/json' -d '{"step":1,"flowVersion":2,"dismissed":true}' http://127.0.0.1:8791/api/setup/step
  3. Load the simulated model: curl -X POST http://127.0.0.1:8791/api/models/qwen38-q2_k/install, wait about 10 s, then curl -X POST http://127.0.0.1:8791/api/models/qwen38-q2_k/load
  4. bun run measure
Reproduction status

Reproduced locally

Strata version

Strata 0.2.24 · app/host/src as tagged v0.2.24 (70ac2f246)

Graphics card, memory and system

Not involved: the dev server's simulated engine, headless Chromium at 1512 × 1110 · Debian sid

Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Merge trung bình
6 ngày 2 giờ
Pull request đã merge (30 ngày)
21

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

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.