.cardBox{ min-height: calc(100vh - 200px); } .ant-tree-node-content-wrapper-open{ display: flex; align-items: center; } .treeTitle { display: flex; span { display: none; } } .treeTitle:hover { span { margin-left: 20px; display: block; } } .titleBox{ display: flex; // flex-wrap: wrap; justify-content: space-around; align-items: center; }