.my-path { height: 100%; display: flex; flex-direction: column; } .path-wrap { margin: 2px 0; } .body { flex: 1 1 1px; height: 1px; }