File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
site/src/components/Resources Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { AppLink } from "./AppLink/AppLink";
36
36
import { PortForwardButton } from "./PortForwardButton" ;
37
37
import { SSHButton } from "./SSHButton/SSHButton" ;
38
38
import { TerminalLink } from "./TerminalLink/TerminalLink" ;
39
+ import { AgentStatus } from "./AgentStatus" ;
39
40
40
41
// Logs are stored as the Line interface to make rendering
41
42
// much more efficient. Instead of mapping objects each time, we're
@@ -164,7 +165,10 @@ export const AgentRow: FC<AgentRowProps> = ({
164
165
>
165
166
< header css = { styles . header } >
166
167
< div css = { styles . agentInfo } >
167
- < div css = { styles . agentName } > { agent . name } </ div >
168
+ < div css = { styles . agentNameAndStatus } >
169
+ < AgentStatus agent = { agent } />
170
+ < span css = { styles . agentName } > { agent . name } </ span >
171
+ </ div >
168
172
{ agent . status === "connected" && (
169
173
< >
170
174
< AgentVersion
@@ -615,7 +619,7 @@ const styles = {
615
619
agentNameAndStatus : ( theme ) => ( {
616
620
display : "flex" ,
617
621
alignItems : "center" ,
618
- gap : 32 ,
622
+ gap : 12 ,
619
623
620
624
[ theme . breakpoints . down ( "md" ) ] : {
621
625
width : "100%" ,
Original file line number Diff line number Diff line change @@ -272,8 +272,8 @@ export const AgentStatus: FC<AgentStatusProps> = ({ agent }) => {
272
272
273
273
const styles = {
274
274
status : {
275
- width : 8 ,
276
- height : 8 ,
275
+ width : 6 ,
276
+ height : 6 ,
277
277
borderRadius : "100%" ,
278
278
flexShrink : 0 ,
279
279
} ,
@@ -306,15 +306,15 @@ const styles = {
306
306
307
307
timeoutWarning : ( theme ) => ( {
308
308
color : theme . palette . warning . light ,
309
- width : 16 ,
310
- height : 16 ,
309
+ width : 14 ,
310
+ height : 14 ,
311
311
position : "relative" ,
312
312
} ) ,
313
313
314
314
errorWarning : ( theme ) => ( {
315
315
color : theme . palette . error . main ,
316
- width : 16 ,
317
- height : 16 ,
316
+ width : 14 ,
317
+ height : 14 ,
318
318
position : "relative" ,
319
319
} ) ,
320
320
} satisfies Record < string , Interpolation < Theme > > ;
You can’t perform that action at this time.
0 commit comments