Skip to content

Commit

Permalink
added spacing for node status
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Jul 12, 2024
1 parent 322ce55 commit 5b5b838
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
24 changes: 18 additions & 6 deletions src/components/networkByIdPage/table/memberHeaderColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,15 @@ export const MemberHeaderColumns = ({ nwid, central = false, organizationId }: I
}
// The user is considered offline
return (
<span style={cursorStyle} className="text-error" title="User is offline">
{c("header.conStatus.offline")}
<TimeAgo date={lastSeen} formatter={formatTime} title={lastSeen} />
<span
style={cursorStyle}
className="text-error flex gap-1"
title="User is offline"
>
<span>{c("header.conStatus.offline")}</span>
<span>
<TimeAgo date={lastSeen} formatter={formatTime} title={lastSeen} />
</span>
</span>
);
}
Expand Down Expand Up @@ -411,9 +417,15 @@ export const MemberHeaderColumns = ({ nwid, central = false, organizationId }: I
}

return (
<span style={cursorStyle} className="text-error" title="User is offline">
{c("header.conStatus.offline")}
<TimeAgo date={lastSeen} formatter={formatTime} title={lastSeen} />
<span
style={cursorStyle}
className="text-error flex gap-1"
title="User is offline"
>
<span>{c("header.conStatus.offline")}</span>
<span>
<TimeAgo date={lastSeen} formatter={formatTime} title={lastSeen} />
</span>
</span>
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"directLan": "Direct LAN connection established",
"directWan": "Direct WAN connection established",
"direct": "DIRECT{version}",
"offline": "offline "
"offline": "offline"
},
"status": "Status"
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"directLan": "Connexion LAN directe établie",
"directWan": "Connexion WAN directe établie",
"direct": "DIRECTE{version}",
"offline": "hors ligne "
"offline": "hors ligne"
},
"status": "Statut"
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/pl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"directLan": "Nawiązano bezpośrednie połączenie LAN",
"directWan": "Nawiązano bezpośrednie połączenie WAN",
"direct": "BEZPOŚREDNIO{version}",
"offline": "OFFLINE "
"offline": "OFFLINE"
},
"status": "Status"
},
Expand Down

2 comments on commit 5b5b838

@tinola
Copy link
Contributor

@tinola tinola commented on 5b5b838 Jul 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, something went wrong with alignment...

align

@sinamics
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinola thx

Please sign in to comment.