Truncating a long file name with three dots is one of those things that is easy to forget, I think. The property alone does nothing; it needs two helpers.
.filename {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.row { display: flex; gap: 1rem; }
.row .filename { min-width: 0; flex: 1; }
text-overflow only kicks in when text actually overflows a block with hidden overflow. white-space: nowrap keeps the text on one line so it can overflow, and overflow: hidden gives the clip that the ellipsis sits on. Miss one and you get either wrapping text or a hard cut.
Inside a flex row there is a fourth requirement. Flex items have min-width: auto by default, which means they refuse to shrink below their content. The long name then pushes the row wider and no ellipsis appears. Setting min-width: 0 on the item lets it shrink. The same goes for grid tracks, where minmax(0, 1fr) does that job.
Keep in mind that the hidden part is gone for sighted users only. Put the full name in a title attribute or show it on hover or focus, so people can still read it.
Further reading: MDN: text-overflow