How can I change image preview size in file details?

I need to make preview on full width and height. How can I do that?

Tried to change it’s css

By adding background-size: cover; I made it full width. But adding height: 300px; doesn’t change it’s height. Is it possible to fix it?