Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hide mod tools popover on smaller screens
  • Loading branch information
regalijan committed Nov 6, 2023
1 parent 4290701 commit 5fc8a53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/routes/mod-queue.tsx
Expand Up @@ -18,13 +18,15 @@ import {
useToast,
VStack,
} from "@chakra-ui/react";
import stylesheet from "../styles/mod-queue.css";
import {
type MutableRefObject,
type ReactNode,
useEffect,
useRef,
useState,
} from "react";
import { LinksFunction } from "@remix-run/cloudflare";
import { useLoaderData } from "@remix-run/react";
import AppealBans from "../../components/AppealBans.js";
import AppealCard from "../../components/AppealCard.js";
Expand All @@ -35,6 +37,10 @@ import ReportCard from "../../components/ReportCard.js";
import NewInactivityNotice from "../../components/NewInactivityNotice.js";
import InactivityNoticeCard from "../../components/InactivityNoticeCard.js";

export const links: LinksFunction = () => {
return [{ href: stylesheet, rel: "stylesheet" }];
};

export async function loader({ context }: { context: RequestContext }) {
const { current_user: currentUser } = context.data;

Expand Down Expand Up @@ -410,7 +416,7 @@ export default function () {
{ItemDisplay}
</Box>
</Flex>
<Popover placement="top-end">
<Popover id="mod-tools" placement="top-end">
<PopoverTrigger>
<Button
borderRadius="50%"
Expand Down
5 changes: 5 additions & 0 deletions app/styles/mod-queue.css
@@ -0,0 +1,5 @@
@media (max-width: 1280px) {
#mod-tools {
display: none;
}
}

0 comments on commit 5fc8a53

Please sign in to comment.