Is your fan factory installed or was it installed after market?
Either way, it sounds like you need a ceiling hugger fan, not one that dangles from a post.
Amazon has some. You did not say if your fan is 12 volt DC, or 120 volt AC. THAT will make a difference.
But, here's one that would work for you if your current set up is DC 12 volt: 4 and 1/4 inches deep.
Amazon, click here.
__________________
History is not about the past, it's an explanation of the present.
2019 Montana High Country 375FL
2014 Chevy Silverado Duramax, 6.6L Dually