Skip to content

Commit

Permalink
[front-end] Better UI for very long names and URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
rogup committed Nov 22, 2024
1 parent a2a3fe4 commit 5363a53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/front-end/src/components/popup/leftPane/LeftPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const LeftPane = ({
return (
<StyledLeftPane>
<StyledHeaderContainer>
<Typography variant="h1">{name}</Typography>
<Typography variant="h1" sx={{ overflowWrap: "break-word" }}>
{name}
</Typography>
{!hasLocation && (
<Typography variant="subtitle2">
{t("no_location_available")}
Expand Down
2 changes: 2 additions & 0 deletions apps/front-end/src/components/popup/rightPane/RightPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ const RightPane = ({
textDecoration: "underline",
padding: "0 !important",
fontSize: "var(--font-size-xsmall)",
overflowX: "hidden",
textOverflow: "ellipsis",
}}
>
{url}
Expand Down

0 comments on commit 5363a53

Please sign in to comment.