Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions site/src/components/Resources/Resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const Language = {
resourceLabel: "Resource",
agentsLabel: "Agents",
agentLabel: "Agent",
accessLabel: "Access",
}

interface ResourcesProps {
Expand Down Expand Up @@ -64,7 +63,7 @@ export const Resources: FC<ResourcesProps> = ({
<AgentHelpTooltip />
</Stack>
</TableCell>
{canUpdateWorkspace && <TableCell>{Language.accessLabel}</TableCell>}
{canUpdateWorkspace && <TableCell></TableCell>}
</TableHeaderRow>
</TableHead>
<TableBody>
Expand All @@ -80,7 +79,7 @@ export const Resources: FC<ResourcesProps> = ({
if (!agent) {
return (
<TableRow key={`${resource.id}-${agentIndex}`}>
<TableCell className={styles.resourceNameCell}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you check if we are using this anywhere else? If not, I think we should remove the resourceNameCell from the makeStyles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're using it to show the border when agents exist. Removed it from the case when no agents exist.

<TableCell>
{resource.name}
<span className={styles.resourceType}>{resource.type}</span>
</TableCell>
Expand Down Expand Up @@ -164,7 +163,7 @@ const useStyles = makeStyles((theme) => ({

// Adds some left spacing
agentColumn: {
paddingLeft: `${theme.spacing(2)}px !important`,
paddingLeft: `${theme.spacing(4)}px !important`,
},

agentInfo: {
Expand All @@ -184,5 +183,6 @@ const useStyles = makeStyles((theme) => ({
display: "flex",
gap: theme.spacing(0.5),
flexWrap: "wrap",
justifyContent: "flex-end",
},
}))