when I join the server I see the render distance and fog on the server shorter and it reduces visibility
from MC-243216 see fixed but there still a issues
Attachments
Comments

Unable to reproduce in 1.18.1-pre1.
The closest thing to reproducing this was setting the server’s view distance lower than the client- in which case, this works as intended per 1.18’a changelog.

my server have view-distance=5

It seems like you have your server distance set to 5 chunks, which is why the fog is so close. Your client-side settings (what's shown in the video) won't go above the server side setting.
What's your server render distance set to?