Add scroll on mobile

pull/1137/head
Asraye 2025-08-21 16:40:51 +10:00 committed by GitHub
parent 9d82873d2a
commit 59226959ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 2 deletions

View File

@ -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 (
<div style={{ padding: "6em" }}>
<Page>
<Tip palette="warning">This section is under construction.</Tip>
{typeof data === "undefined" && <Preloader type="spinner" />}
{data && (
@ -106,6 +122,7 @@ export default function InviteBot() {
</Option>
</>
)}
</div>
</Page>
);
}