From 8c65777ba84235193532d317adbd1b5cddca227c Mon Sep 17 00:00:00 2001 From: Anderson Shindy Oki Date: Sun, 7 Jul 2024 05:11:19 +0900 Subject: [PATCH] Fixed overview poster wrap (#2567) --- frontend/src/pages/views/ItemOverview.tsx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/views/ItemOverview.tsx b/frontend/src/pages/views/ItemOverview.tsx index a2debdc57..15b43aab1 100644 --- a/frontend/src/pages/views/ItemOverview.tsx +++ b/frontend/src/pages/views/ItemOverview.tsx @@ -1,4 +1,4 @@ -import { FunctionComponent, useMemo } from "react"; +import React, { FunctionComponent, useMemo } from "react"; import { BackgroundImage, Badge, @@ -12,6 +12,7 @@ import { Stack, Text, Title, + Tooltip, } from "@mantine/core"; import { faBookmark as farBookmark, @@ -43,12 +44,18 @@ const ItemOverview: FunctionComponent = (props) => { const { item, details } = props; const detailBadges = useMemo(() => { - const badges: (JSX.Element | null)[] = []; + const badges: (React.JSX.Element | null)[] = []; if (item) { badges.push( - {item.path} + + {item.path} + , ); @@ -90,7 +97,7 @@ const ItemOverview: FunctionComponent = (props) => { const profileItems = useProfileItemsToLanguages(profile); const languageBadges = useMemo(() => { - const badges: (JSX.Element | null)[] = []; + const badges: (React.JSX.Element | null)[] = []; if (profile) { badges.push( @@ -129,7 +136,9 @@ const ItemOverview: FunctionComponent = (props) => { m={0} style={{ backgroundColor: "rgba(0,0,0,0.7)", - flexWrap: "nowrap", + }} + styles={{ + inner: { flexWrap: "nowrap" }, }} > @@ -140,7 +149,7 @@ const ItemOverview: FunctionComponent = (props) => { fallbackSrc="https://placehold.co/250x250?text=Placeholder" > - +