keystonejs / keystonejs/keystone

ListView CSS Issue with file field

Open
#8,960 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
19h 14m
Merged PRs (30d)
19

Description

1. Create a file field in a List
2. Make this file field available in the Admin UI List View of this List
3. Use files which are long and maybe even have a space

The name of the file should be readable and not overlapping

This is standard behavior
![grafik](https://github.com/keystonejs/keystone/assets/9459039/5af88592-ac17-470a-ae51-20816856a262)

If I remove the width attribute with is set to 24px of the file name div container it works nicely. See:
![grafik](https://github.com/keystonejs/keystone/assets/9459039/31f72568-c93e-4167-aefb-cedc45da665a)

Node Version 20.9
Keystone 6 5.7.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Admin UI List View by adding a file field to a List and using long filenames, especially names containing spaces. Inspect the file-name div container and its 24px width behavior. Done means long filenames remain readable without overlapping, and the List View still displays file fields correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.