They were never in a public relationship. Being gay was fine in pureblood society to the extent that you were still expected to marry the opposite sex and produce an heir. As the last of their lines, Draco and Theo didn’t have the option to be together publicly, and certainly not in the manner that they would have wanted, so they kept it to themselves. Blaise and Pansy were the only exceptions.