From 0e770d81d6e1dc15cef3c2254274e52a2e81a576 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 29 Sep 2020 09:32:26 +0100 Subject: [PATCH 01/10] Fix identifier wrapping Fixes https://github.com/matrix-org/matrix.to/issues/153 --- src/clients/Nheko.tsx | 10 ++++++++-- src/clients/Weechat.tsx | 10 ++++++++-- src/components/CreateLinkTile.scss | 4 ---- src/components/CreateLinkTile.tsx | 2 +- src/components/DefaultPreview.scss | 4 ---- src/components/DefaultPreview.tsx | 2 +- src/components/HomeserverOptions.tsx | 7 ++++++- src/components/InviteTile.tsx | 2 +- src/components/LinkPreview.tsx | 7 ++++++- src/components/RoomPreview.tsx | 6 ++++-- src/components/UserPreview.tsx | 9 ++++++--- src/index.scss | 4 ++++ 12 files changed, 45 insertions(+), 22 deletions(-) diff --git a/src/clients/Nheko.tsx b/src/clients/Nheko.tsx index a0954d1..22f8045 100644 --- a/src/clients/Nheko.tsx +++ b/src/clients/Nheko.tsx @@ -40,7 +40,10 @@ const Nheko: TextClient = { Type{' '} - /join {link.identifier} + /join{' '} + + {link.identifier} + ); @@ -49,7 +52,10 @@ const Nheko: TextClient = { Type{' '} - /invite {link.identifier} + /invite{' '} + + {link.identifier} + ); diff --git a/src/clients/Weechat.tsx b/src/clients/Weechat.tsx index cd15769..86b0a98 100644 --- a/src/clients/Weechat.tsx +++ b/src/clients/Weechat.tsx @@ -40,7 +40,10 @@ const Weechat: TextClient = { Type{' '} - /join {link.identifier} + /join{' '} + + {link.identifier} + ); @@ -49,7 +52,10 @@ const Weechat: TextClient = { Type{' '} - /invite {link.identifier} + /invite{' '} + + {link.identifier} + ); diff --git a/src/components/CreateLinkTile.scss b/src/components/CreateLinkTile.scss index a377ae4..0fba4fc 100644 --- a/src/components/CreateLinkTile.scss +++ b/src/components/CreateLinkTile.scss @@ -35,10 +35,6 @@ limitations under the License. color: $foreground; } - .linkHeader h1 { - word-break: break-all; - } - .createLinkReset { height: 40px; width: 40px; diff --git a/src/components/CreateLinkTile.tsx b/src/components/CreateLinkTile.tsx index 5c05c58..fbca6d9 100644 --- a/src/components/CreateLinkTile.tsx +++ b/src/components/CreateLinkTile.tsx @@ -128,7 +128,7 @@ const LinkCreatedTile: React.FC = (props) => {
New link
Go back to matrix.to home page -

{props.link}

+

{props.link}