[6.x]: Inconsistent style and preview for thumbnail sources

Đang mở
#21,306 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
css, html, php
Lĩnh vực
design, frontend

Hướng nghiên cứu

The issue identifies the field layout designer’s Icon preview and live card thumbnails as the affected places, but names no files or tests. Start by tracing how thumbnail sources provide previews and card markup for icon fields and entry type icons. Done when the placeholder is a useful icon, entry type icons have higher contrast in both views, and icon field thumbnails match their presentation.

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

Mô tả

bug repo:cms

Settings View

In the field layout designer (or the Appearance tab of a field layout provider), the Icon fields fall back to a photographic representation.

  • Icon field selected: Placeholder HTML is a photo.

    Screenshot 2026-12-01 at 16 23 37
  • Entry type icon selected: Entry type icon is displayed in a grey box (low-contrast).

    Screenshot 2026-12-01 at 16 23 31

Card View

When a live element is displayed as a card, thumbnail sources that return an icon are handled differently.

  • Icon field selected: Icon is unstyled, in-line.

    Screenshot 2026-12-01 at 16 25 15
  • Entry type icon selected: Icon matted on grey box, like preview (but also low-contrast).

    Screenshot 2026-12-01 at 16 25 33

Altogether, I think there are three issues:

  • Icon field placeholder should be a “seeded” random icon (like fake user avatars), or a fixed selection (dice, question mark, etc.)
  • Entry type icon placeholder HTML and live card markup need higher contrast to be useful
  • Live thumbnails from an icon field should match the presentation of entry type icons
Ngôn ngữ chính
PHP
Star
3.6k
Fork
800
Merge trung bình
15 giờ 20 phút
Pull request đã merge (30 ngày)
715

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 craftcms/cms

Tất cả issue của craftcms/cms

Issue tương tự

Thêm issue về PHP

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.