Closed daturon closed 11 months ago
It could be fixed with smth like this:
const Filename = styled('div')`
display: flex;
width: 100%;
& > span {
display: block;
}
& > span:first-of-type {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
& > span:last-of-type {
flex-shrink: 0;
display: block;
}
`
Could you update these (:first-child and :last-child) pseudo-classes, please?
Hey !
How to you get this warning ? With which framework ?
Describe the bug The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type". It appears when I try to add files.
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):