style: improved layout in at debug page

This commit is contained in:
fujr 2025-04-11 17:24:51 +08:00
parent 1201079044
commit 8e3e5ecf17

View File

@ -1081,9 +1081,13 @@
table.appendChild(tr); table.appendChild(tr);
tr = this.createTR(); tr = this.createTR();
td_l = this.createTD(); td_l = this.createTD();
td_l.appendChild(this.at_btn); let span = document.createElement('span');
td_l.appendChild(this.clear_port_btn); span.classList.add("flex_container");
td_l.appendChild(this.clear_cmd_btn); td_l.setAttribute("colspan",2);
span.appendChild(this.at_btn);
span.appendChild(this.clear_port_btn);
span.appendChild(this.clear_cmd_btn);
td_l.appendChild(span);
tr.appendChild(td_l); tr.appendChild(td_l);
table.appendChild(tr); table.appendChild(tr);
this.fieldset.appendChild(table); this.fieldset.appendChild(table);
@ -1348,6 +1352,12 @@
align-items: center; align-items: center;
min-width: 15%; min-width: 15%;
} }
.flex_container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
</style> </style>
<div class="cbi-map"> <div class="cbi-map">
<fieldset class="cbi-section"> <fieldset class="cbi-section">