fix: Layout of todo summary in metadata on mobile (#10559)

This commit is contained in:
Tom Moor
2025-11-04 17:01:58 -05:00
committed by GitHub
parent 89425ccdab
commit 5a77217d25
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ import Document from "~/models/Document";
import CircularProgressBar from "~/components/CircularProgressBar";
import usePrevious from "~/hooks/usePrevious";
import { bounceIn } from "~/styles/animations";
import Flex from "./Flex";
type Props = {
document: Document;
@@ -41,7 +42,7 @@ function DocumentTasks({ document }: Props) {
const message = getMessage(t, total, completed);
return (
<>
<Flex align="center" style={{ padding: "0 1px" }} gap={2}>
{completed === total ? (
<Done
color={theme.accent}
@@ -51,8 +52,8 @@ function DocumentTasks({ document }: Props) {
) : (
<CircularProgressBar percentage={tasksPercentage} />
)}
&nbsp;{message}
</>
{message}
</Flex>
);
}
@@ -85,6 +85,7 @@ function TitleDocumentMeta({ to, document, revision, ...rest }: Props) {
const CommentLink = styled(Link)`
display: inline-flex;
align-items: center;
gap: 2px;
`;
const InsightsButton = styled(NudeButton)`