mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
handle long names in the cards for route portal - ENG-2026 (#5514)
handle long names in the cards for route portal
This commit is contained in:
parent
6be4efd48b
commit
ef48f8a0cc
1 changed files with 25 additions and 3 deletions
|
@ -34,8 +34,21 @@ const RouteCard: FC<RouteCardProps> = ({ route }) => {
|
|||
};
|
||||
|
||||
return (
|
||||
<Card raised={true}>
|
||||
<CardActionArea href={route.from} target="_blank" onClick={handleClick}>
|
||||
<Card
|
||||
raised={true}
|
||||
sx={{
|
||||
height: "100%",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<CardActionArea
|
||||
sx={{ height: "100%" }}
|
||||
href={route.from}
|
||||
target="_blank"
|
||||
onClick={handleClick}
|
||||
>
|
||||
<CardHeader
|
||||
avatar={
|
||||
route.logo_url ? (
|
||||
|
@ -67,7 +80,16 @@ const RouteCard: FC<RouteCardProps> = ({ route }) => {
|
|||
</IconButton>
|
||||
)
|
||||
}
|
||||
title={route.name}
|
||||
title={
|
||||
<Box
|
||||
component="span"
|
||||
sx={{
|
||||
wordBreak: "break-all",
|
||||
}}
|
||||
>
|
||||
{route.name}
|
||||
</Box>
|
||||
}
|
||||
/>
|
||||
<CardContent>
|
||||
{route.description && (
|
||||
|
|
Loading…
Add table
Reference in a new issue