From 351c526dbeb68a88cd2cb5145a71082e6102b27c Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 23 Apr 2022 20:31:49 +0200 Subject: [PATCH] Fixed bug where post would unwantendly display the return button on mobile --- src/components/Post.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/Post.tsx b/src/components/Post.tsx index 475bd59..cfa4e8a 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -10,7 +10,6 @@ import { import { useEffect, useMemo, useState } from "react"; import AppLayout from "./AppLayout"; import Chip from "./Chip"; -import ThumbnailHeader from "./Content/ThumbnailHeader"; import HorizontalLine from "./HorizontalLine"; import LanguageSwitcher from "./LanguageSwitcher"; import Markdawn from "./Markdown/Markdawn"; @@ -19,6 +18,7 @@ import ReturnButton, { ReturnButtonType } from "./PanelComponents/ReturnButton"; import ContentPanel from "./Panels/ContentPanel"; import SubPanel from "./Panels/SubPanel"; import RecorderChip from "./RecorderChip"; +import ThumbnailHeader from "./ThumbnailHeader"; import ToolTip from "./ToolTip"; interface Props { @@ -164,13 +164,15 @@ export default function Post(props: Props): JSX.Element { const contentPanel = ( - + {returnHref && returnTitle && ( + + )} {displayThumbnailHeader ? ( <>