Remove the calculation of width and instead switch to small action class that automatically sets the width based on the screen size.
The only thing that stands out to me here is if there is any JS theme components/plugin code that iterate through
small-action posts and modify them. If not that’s fine then!
Honestly, I’m not sure but I guess only one way to find out.