Add responsive styling to performance table

This commit is contained in:
DianaXWiki 2024-07-09 18:24:17 +03:00
parent 6638c4cc49
commit e43b16a6ee
2 changed files with 24 additions and 0 deletions

View File

@ -194,6 +194,28 @@
background-color: @cp_sidebar-left-item-bg;
}
}
}
.cp-sidebar-table#performance-profiling-table {
@media (max-width: 900px) {
width: 100%;
tr {
display: flex;
flex-wrap: wrap;
align-items: center;
}
th, td {
border: none;
flex: 1 1 auto;
width: 5rem;
margin-right: 0;
font-size: 13px;
word-wrap: break-word;
white-space: normal;
}
}
}
.cp-sidebar-input-block {
display: inline-flex;

View File

@ -3596,6 +3596,8 @@ define([
var table = blocks.table(header, []);
table.id = 'performance-profiling-table';
const onRefresh = function () {
sFrameChan.query('Q_ADMIN_RPC', {
cmd: 'GET_WORKER_PROFILES',