fix: Mobile hover states make notifications unscrollable

This commit is contained in:
Tom Moor
2023-05-20 11:32:05 -04:00
parent ea885133ac
commit ac6047bbb7
10 changed files with 24 additions and 17 deletions

View File

@@ -18,6 +18,7 @@ import Time from "~/components/Time";
import useBoolean from "~/hooks/useBoolean";
import useToasts from "~/hooks/useToasts";
import CommentMenu from "~/menus/CommentMenu";
import { hover } from "~/styles";
import CommentEditor from "./CommentEditor";
/**
@@ -244,8 +245,7 @@ const Menu = styled(CommentMenu)<{ dir?: "rtl" | "ltr" }>`
transition: opacity 100ms ease-in-out;
color: ${s("textSecondary")};
&:hover,
&[aria-expanded="true"] {
&: ${hover}, &[aria-expanded= "true" ] {
opacity: 1;
background: ${s("sidebarActiveBackground")};
}
@@ -296,7 +296,7 @@ export const Bubble = styled(Flex)<{
margin-bottom: 0;
}
&:hover ${Menu} {
&: ${hover} ${Menu} {
opacity: 1;
}