Skip to content

[5.x]: Status labels cut off in some contexts / widths in 'card view' #16325

@iparr

Description

@iparr

What happened?

Description

See screenshot:

Image

This is the candidate for improvement:

.card .card-content .card-body>:not(:has(>.no-truncate)) {
    --max-lines: 2;
    margin: 0;
    max-height: calc(var(--lh)* var(--max-lines));
}

Steps to reproduce

  1. Edit a document without saving so that 2x 'labels' appear
  2. Switch to 'card view' in entry listing
  3. Resize viewport to make the labels 'wrap'

Expected behavior

Not to hide.

Actual behavior

Craft CMS version

5.5.56.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions