Renameed component

This commit is contained in:
DrMint 2022-04-24 14:32:55 +02:00
parent 1c2653ad07
commit fcd303fe6a
8 changed files with 16 additions and 14 deletions

View File

@ -172,10 +172,10 @@ export default function ThumbnailPreview(props: Props): JSX.Element {
))}
</div>
)}
<div>
{pre_title && <p>{pre_title}</p>}
{title && <h1 className="text-lg">{title}</h1>}
{subtitle && <h2>{subtitle}</h2>}
<div className="my-1">
{pre_title && <p className="leading-none mb-1">{pre_title}</p>}
{title && <p className="font-headers text-lg leading-none">{title}</p>}
{subtitle && <p className="leading-none">{subtitle}</p>}
</div>
{description && <p>{description}</p>}
{bottomChips && bottomChips.length > 0 && (

View File

@ -47,10 +47,12 @@ export default function PreviewLine(props: Props): JSX.Element {
))}
</div>
)}
<div className="flex flex-col">
{pre_title && <p>{pre_title}</p>}
{title && <h1 className="text-lg">{title}</h1>}
{subtitle && <h2>{subtitle}</h2>}
<div className="flex flex-col my-1">
{pre_title && <p className="leading-none mb-1">{pre_title}</p>}
{title && (
<p className="font-headers text-lg leading-none">{title}</p>
)}
{subtitle && <p className="leading-none">{subtitle}</p>}
</div>
{bottomChips && bottomChips.length > 0 && (
<div className="grid grid-flow-col gap-1 overflow-hidden place-content-start">

View File

@ -8,7 +8,7 @@ import ContentPanel, {
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { GetVideoChannelQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import {

View File

@ -9,7 +9,7 @@ import ContentPanel, {
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { GetVideosPreviewQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import { GetStaticPropsContext } from "next";

View File

@ -7,7 +7,7 @@ import ContentPanel, {
import SubPanel from "components/Panels/SubPanel";
import Select from "components/Select";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { GetContentsQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import { GetStaticPropsContext } from "next";

View File

@ -14,7 +14,7 @@ import ContentPanel, {
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { useAppLayout } from "contexts/AppLayoutContext";
import {
Enum_Componentmetadatabooks_Binding_Type,

View File

@ -7,7 +7,7 @@ import ContentPanel, {
import SubPanel from "components/Panels/SubPanel";
import Select from "components/Select";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { GetLibraryItemsPreviewQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import { GetStaticPropsContext } from "next";

View File

@ -5,7 +5,7 @@ import ContentPanel, {
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
import Switch from "components/Switch";
import ThumbnailPreview from "components/ThumbnailPreview";
import ThumbnailPreview from "components/PreviewCard";
import { GetPostsPreviewQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import { GetStaticPropsContext } from "next";