I think first you need to activate the custom css plugin (Settings > Appearance) and then you can adjust the whitespace via the selectors margin-top and margin-bottom for the class .markdown-preview-view hr.
Here is a good tutorial about Getting Comfortable with Obsidian CSS.