From 59226959ba1569a4a8de2a61e425f17245347524 Mon Sep 17 00:00:00 2001 From: Asraye Date: Thu, 21 Aug 2025 16:40:51 +1000 Subject: [PATCH 1/2] Add scroll on mobile --- src/pages/invite/InviteBot.tsx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/pages/invite/InviteBot.tsx b/src/pages/invite/InviteBot.tsx index 8711d4fd..9dbf39de 100644 --- a/src/pages/invite/InviteBot.tsx +++ b/src/pages/invite/InviteBot.tsx @@ -10,6 +10,22 @@ import UserIcon from "../../components/common/user/UserIcon"; import Markdown from "../../components/markdown/Markdown"; import { useClient } from "../../controllers/client/ClientController"; +const Page = styled.div` + padding: 6em; + min-height: 100vh; + overflow-y: auto; + overflow-x: hidden; + box-sizing: border-box; + + @media (max-width: 768px) { + padding: 2em; + } + + @media (max-width: 480px) { + padding: 1em; + } +`; + const BotInfo = styled.div` gap: 12px; display: flex; @@ -42,7 +58,7 @@ export default function InviteBot() { const [group, setGroup] = useState("none"); return ( -
+ This section is under construction. {typeof data === "undefined" && } {data && ( @@ -106,6 +122,7 @@ export default function InviteBot() { )} -
+ ); } + From f22e6fa9fea5b1bc03a8614fc89f1174974023fc Mon Sep 17 00:00:00 2001 From: Asraye Date: Thu, 4 Sep 2025 04:22:20 +1000 Subject: [PATCH 2/2] fix: correct open/download link behaviour --- .../common/messaging/attachments/AttachmentActions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/messaging/attachments/AttachmentActions.tsx b/src/components/common/messaging/attachments/AttachmentActions.tsx index a667f400..6d419f4b 100644 --- a/src/components/common/messaging/attachments/AttachmentActions.tsx +++ b/src/components/common/messaging/attachments/AttachmentActions.tsx @@ -26,8 +26,8 @@ export default function AttachmentActions({ attachment }: Props) { const { filename, metadata, size } = attachment; const url = client.generateFileURL(attachment); - const open_url = `${url}/${filename}`; - const download_url = url; + const open_url = url; + const download_url = `${url}/${filename}`; const filesize = determineFileSize(size);