Skip to content

admin field width does not work (CSS specificity bug) #7867

Closed
@brunocrosier

Description

@brunocrosier

Link to reproduction

No response

Payload Version

beta

Node Version

20

Next.js Version

beta

Describe the Bug

This line of CSS is explicitly setting width: 100%!important, meaning that when you do something like

admin: {
  width: '50%'
}

although the width: 50% is actually set on the element, the width: 100%!important wins out, and we can't have fields of custom width
the

Reproduction Steps

Create a collection and add

admin: {
  width: '50%'
}

to any field

### Adapters and Plugins

_No response_

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions