Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ui(dialogs): make destructive query and DML preview dialogs adaptive and prevent table name overflow

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

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
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ệ
dart, flutter
Lĩnh vực
desktop, frontend

Hướng nghiên cứu

Đọc lib/features/workspace/destructive_query_dialog.dart và lib/features/workspace/dml_preview_dialog.dart, sau đó kiểm tra cách WindowLayout.dialogConstraints(context) và WindowLayout.dialogSymmetricInsets(context) được sử dụng ở những nơi khác. Cập nhật kích thước hộp thoại và giới hạn tên bảng trong phần xem trước DML như mô tả; công việc hoàn tất khi cả hai hộp thoại đều vừa với cửa sổ nhỏ gọn hoặc được thu phóng và tên bảng dài không còn tràn ra ngoài.

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

Mô tả

bug frontend
Problem
  1. Non-adaptive dialog constraints:
    In lib/features/workspace/destructive_query_dialog.dart, the dialog card uses hardcoded fixed constraints:

    constraints: const material.BoxConstraints(
      minWidth: 540,
      maxWidth: 680,
      minHeight: 440,
      maxHeight: 580,
    ),
    child: material.FocusTraversalGroup(
      child: material.SizedBox(height: 540, ...),
    

    It does not use WindowLayout.dialogConstraints(context) or WindowLayout.dialogSymmetricInsets(context). When running on compact window widths (e.g. 520px) or with a UI scale of 1.25x+, the dialog overflows screen bounds.

  2. Unconstrained table name in DML Preview:
    In lib/features/workspace/dml_preview_dialog.dart, the header row displays Text('${widget.plan.schema}.${widget.plan.tableName}') without Flexible and without overflow: TextOverflow.ellipsis. For long table names, it causes horizontal RenderFlex overflow.

Change
  • Migrate destructive_query_dialog.dart to use WindowLayout.dialogConstraints(context) and WindowLayout.dialogSymmetricInsets(context).
  • Wrap the table name in dml_preview_dialog.dart with Flexible(child: Text(..., overflow: TextOverflow.ellipsis)).
Ngôn ngữ chính
Dart
Star
23
Fork
1
Merge trung bình
31 phút
Pull request đã merge (30 ngày)
570

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 QueryaHub/Querya-Desktop

Tất cả issue của QueryaHub/Querya-Desktop

Issue tương tự

Thêm issue về Dart

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.