mirror of
https://github.com/outline/outline.git
synced 2026-12-01 09:22:14 +03:00
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:
1 file changed
+7
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user