Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move tools entirely to button popover on top
  • Loading branch information
regalijan committed Nov 7, 2023
1 parent cc3c4af commit dada8af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 35 deletions.
34 changes: 4 additions & 30 deletions app/routes/mod-queue.tsx
Expand Up @@ -19,15 +19,13 @@ 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 @@ -38,10 +36,6 @@ 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 @@ -412,7 +406,10 @@ export default function () {
<Flex>
<VStack w={isDesktop ? "container.md" : "container.lg"}>
<Box display={isDesktop ? "none" : undefined} mb="16px" w="90%">
{ItemDisplay}
<HStack>
{ItemDisplay}
{ToolsContent}
</HStack>
</Box>
{entries.length ? (
entries.map((entry) => entry.element)
Expand Down Expand Up @@ -459,29 +456,6 @@ export default function () {
</HStack>
</Box>
</Flex>
<Popover id="mod-tools" placement="top-end">
<PopoverTrigger>
<Button
borderRadius="50%"
bottom="10vh"
h="16"
position="absolute"
right="10vh"
w="16"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
fill="currentColor"
viewBox="0 0 16 16"
>
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" />
</svg>
</Button>
</PopoverTrigger>
{ToolsContent}
</Popover>
</Container>
);
}
5 changes: 0 additions & 5 deletions app/styles/mod-queue.css

This file was deleted.

0 comments on commit dada8af

Please sign in to comment.