fix: Various fixes for commenting on mobile (#5195

* fix: Comment sidebar chopped on mobile
fix: Zoom on comment input focus on mobile

* fix: Always show reply option on mobile

* fix: Auto-expand comment sidebar if linked to a specific comment
This commit is contained in:
Tom Moor
2023-04-12 22:00:00 -04:00
committed by GitHub
parent 821c9368f6
commit 7c44e116fc
5 changed files with 48 additions and 32 deletions

View File

@@ -5,6 +5,7 @@ import { darken } from "polished";
import * as React from "react";
import { useTranslation } from "react-i18next";
import styled, { css } from "styled-components";
import breakpoint from "styled-components-breakpoint";
import { s } from "@shared/styles";
import { Minute } from "@shared/utils/time";
import Comment from "~/models/Comment";
@@ -257,7 +258,7 @@ export const Bubble = styled(Flex)<{
}>`
position: relative;
flex-grow: 1;
font-size: 15px;
font-size: 16px;
color: ${s("text")};
background: ${s("commentBackground")};
min-width: 2em;
@@ -286,6 +287,10 @@ export const Bubble = styled(Flex)<{
&:hover ${Menu} {
opacity: 1;
}
${breakpoint("tablet")`
font-size: 15px;
`}
`;
export default observer(CommentThreadItem);