fix: Only break the redirect URL mid-word on the consent screen

break-all on the whole notice split words such as "continue" in the
loopback warning. It now applies only to the redirect URL.
This commit is contained in:
Tom Moor committed 2026-10-11 22:23:38 -04:00
1 parent fae03e0dd1
commit ae64047ce9
1 file changed
+7 -2
+7 -2
View File
@@ -263,7 +263,7 @@ function Authorize() {
)
)}
</ul>
<Text type="tertiary" as="p" style={{ wordBreak: "break-all" }}>
<Text type="tertiary" as="p">
{isLoopback && clientHost ? (
<Trans
defaults="You will be redirected to a local application after authorizing. <em>{{ clientHost }}</em> cannot confirm that this application belongs to it, only continue if you started this connection yourself."
@@ -281,7 +281,7 @@ function Authorize() {
redirectUri,
}}
components={{
em: <strong />,
em: <RedirectUri />,
}}
/>
)}
@@ -336,6 +336,11 @@ const StyledHeading = styled(Heading).attrs({
margin-top: 0;
`;
// Only the URL may break mid-word, so long URLs wrap without splitting prose.
const RedirectUri = styled.strong`
word-break: break-all;
`;
const Pre = styled.pre`
background: ${s("backgroundSecondary")};
padding: 16px;