Skip to content

Commit

Permalink
fix: Spacing for network status
Browse files Browse the repository at this point in the history
When a status is displayed for network interface, such as "Deactivating"
it did not have spacing between the active connection and the state.

This ensures that there is always a spacing when needed.

Note, this also removes a span that is not used for anything.

Fixes #20038
  • Loading branch information
Venefilyn authored and martinpitt committed Jan 21, 2025
1 parent 2d0d421 commit 5f9d464
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/networkmanager/network-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ export const NetworkInterfacePage = ({
<DescriptionListGroup>
<DescriptionListTerm>{_("Status")}</DescriptionListTerm>
<DescriptionListDescription className="networking-interface-status">
{activeConnection}
{state ? <span>{state}</span> : null}
{[activeConnection, state].filter(val => val).join(", ")}
</DescriptionListDescription>
</DescriptionListGroup>
);
Expand Down

0 comments on commit 5f9d464

Please sign in to comment.