Skip to content

Commit

Permalink
Merge pull request #277 from IntersectMBO/fix/user-profile-button-ove…
Browse files Browse the repository at this point in the history
…rlaps-background-behind

fix: User Profile button overlaps background behind
  • Loading branch information
Kristina2103 authored Aug 19, 2024
2 parents f4d1081 + 1cd04cd commit c12c048
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/molecules/UserProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function UserProfileButton({
"aria-labelledby": "basic-button",
}}
PaperProps={{
style: { backgroundColor: "transparent", boxShadow: "none" },
style: { boxShadow: "none" },
}}
>
<Grid
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/organisms/Constitution/Constitution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Card } from "@molecules";
import { Box, Divider, Grid } from "@mui/material";
import { MDXRemote } from "next-mdx-remote";
import { useState } from "react";
import { useEffect, useState } from "react";
import {
Code,
Heading1,
Expand All @@ -23,14 +23,22 @@ import { ContentWrapper } from "@/components/atoms";
import { NotFound } from "../NotFound";
import { PageTitleTabs } from "../PageTitleTabs";
import { isAnyAdminRole } from "@utils";
import { useScreenDimension } from "@hooks";

export function Constitution({ constitution, metadata }: ConstitutionProps) {
const { isMobile } = useScreenDimension();
const { userSession } = useAppContext();
const [isOpen, setIsOpen] = useState(true);
const [tab, setTab] = useState("revisions");
const { openModal } = useModal();
const t = useTranslations("Constitution");

useEffect(() => {
if (isMobile) {
setIsOpen(false);
}
}, [isMobile]);

const onCompare = (
target: Omit<ConstitutionMetadata, "version" | "url" | "blake2b">
) => {
Expand Down

0 comments on commit c12c048

Please sign in to comment.