How can I delete the preset width (10px) of the horizontal and vertical lines?

You can give the line a negative margin, or rotate it in order for it to align