Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions apps/backoffice/src/components/services/service-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const ServiceStatus = ({ status }: ServiceStatusProps) => {
size="small"
color={color as any}
disabled={disabled}
sx={{
"& .MuiChip-label": {
whiteSpace: "nowrap"
}
}}
/>
</LoaderSkeleton>
);
Expand Down
1 change: 1 addition & 0 deletions apps/backoffice/src/components/table-view/table-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export function TableView<T>({ ...props }: TableViewProps<T>) {
<TableCell
key={`tb-row-${tbRowIndex}-col-${tbColIndex}`}
align={col.alignment}
sx={{ maxWidth: "300px" }}
>
<LoaderSkeleton
loading={props.loading ?? false}
Expand Down
20 changes: 18 additions & 2 deletions apps/backoffice/src/pages/services/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,31 @@ export default function Services() {
<CallSplit fontSize="small" color="primary" />
) : null
}
sx={{ fontWeight: 700, textAlign: "left" }}
sx={{
textAlign: "left",
width: "100%"
}}
disabled={isServiceStatusValueDeleted(service.status.value)}
onClick={() =>
hasTwoDifferentVersions(service)
? openServiceVersionSwitcher(service)
: router.push(`/services/${service.id}`)
}
>
{service.name}
<Typography
fontWeight={700}
color="primary.main"
noWrap
style={{
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap",
display: "block",
width: "100%"
}}
>
{service.name}
</Typography>
</Button>
)
},
Expand Down