mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
Firewall: Rules [new]: Statistics column is responsive now (#9679)
This commit is contained in:
parent
7333fba07a
commit
9aaf675694
2 changed files with 13 additions and 10 deletions
|
|
@ -653,7 +653,6 @@
|
|||
<grid_view>
|
||||
<formatter>statistics</formatter>
|
||||
<sequence>115</sequence>
|
||||
<min-width>200</min-width>
|
||||
</grid_view>
|
||||
</field>
|
||||
<field>
|
||||
|
|
|
|||
|
|
@ -550,14 +550,9 @@
|
|||
return "";
|
||||
}
|
||||
|
||||
// Split into two vertical rows
|
||||
const firstGroup = parts.slice(0, 2).join(" ");
|
||||
const secondGroup = parts.slice(2).join(" ");
|
||||
|
||||
return `
|
||||
<div class="stats-cell">
|
||||
<div>${firstGroup}</div>
|
||||
<div>${secondGroup}</div>
|
||||
${parts.join("")}
|
||||
</div>
|
||||
`;
|
||||
},
|
||||
|
|
@ -1056,11 +1051,20 @@
|
|||
|
||||
.stats-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 10px;
|
||||
align-items: center;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.stats-cell div {
|
||||
gap: 6px;
|
||||
.stats-cell > span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@container (max-width: 160px) {
|
||||
.stats-cell > span {
|
||||
flex: 1 1 50%;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue