diff --git a/frontend/src/OspfToolsPage.jsx b/frontend/src/OspfToolsPage.jsx index b6948ae..458dc3c 100644 --- a/frontend/src/OspfToolsPage.jsx +++ b/frontend/src/OspfToolsPage.jsx @@ -171,6 +171,7 @@ export default function OspfToolsPage() { .sort((a, b) => a.area.localeCompare(b.area)), })); }, [templates, servers]); + const routerColumnClass = groupedByRouter.length > 1 ? 'col-12 col-xxl-6' : 'col-12'; const loadServers = async () => { try { @@ -333,7 +334,7 @@ export default function OspfToolsPage() { ) : (
{groupedByRouter.map((routerGroup) => ( -
+
{routerGroup.routerLabel}
@@ -350,7 +351,7 @@ export default function OspfToolsPage() { return (
setDragging({ routerKey: routerGroup.routerKey, @@ -362,22 +363,26 @@ export default function OspfToolsPage() { onDragEnd={() => setDragging(null)} style={{ cursor: 'grab' }} > -
- :: - {item.interfaceName} - - {item.active ? 'Активен' : 'Неактивен'} - - {hint && ( - - opt cost {hint.optimalCost} +
+
+ :: + {item.interfaceName} + + {item.active ? 'Активен' : 'Неактивен'} - )} +
+
+ {hint && ( + + opt cost {hint.optimalCost} + + )} + cost {item.cost} +
- cost {item.cost}
); })()