Try:
td.tags .discourse-tags {
display: flex;
flex-direction: column;
}
Also, I imagine you will want to remove the default tag placement under the topic title. Look for the first occurrence of {{discourse-tags topic mode="list" tagsForUser=tagsForUser}}
in the template.