What is your improvement proposal all about?
As a user, I do not see all values (files) at first glance. The user could think that there is something missing.
Example Attachments:
There are 4 files uploaded as attachments. But I do see only 3 of them. It is hard to see that there is a scroll bar. The user should see all the needed information immediately.
What I see:

What is really there:

Example Data structure:
What I see:

What is really there:
- 2 more entries

How does the current implementation works and what is wrong about it?
see above
How should the (part of the) feature be implemented?
For the table, I suggest to show the height depending on the value of the page size. Make a default value of 5 to have it small from the beginning.