fix:detail article space
This commit is contained in:
parent
497ebc949f
commit
ec2e0ef1b8
|
|
@ -153,6 +153,7 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-center my-2 lg:my-5">
|
<div className="flex justify-center my-2 lg:my-5">
|
||||||
|
{data?.files?.length > 0 && (
|
||||||
<Image
|
<Image
|
||||||
width={1440}
|
width={1440}
|
||||||
height={1080}
|
height={1080}
|
||||||
|
|
@ -160,8 +161,9 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
src={data?.files[imageNow]?.file_url}
|
src={data?.files[imageNow]?.file_url}
|
||||||
className="object-cover w-[100%] rounded-md"
|
className="object-cover w-[100%] rounded-md"
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{data?.files?.length > 1 && (
|
{data?.files?.length > 0 && (
|
||||||
<div className="flex flex-row gap-3 flex-nowrap overflow-x-auto">
|
<div className="flex flex-row gap-3 flex-nowrap overflow-x-auto">
|
||||||
{data?.files?.map((file: any, index: number) => (
|
{data?.files?.map((file: any, index: number) => (
|
||||||
<a
|
<a
|
||||||
|
|
@ -184,7 +186,7 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
dangerouslySetInnerHTML={removeImgTags(
|
dangerouslySetInnerHTML={removeImgTags(
|
||||||
formatTextToHtmlTag(data?.htmlDescription)
|
formatTextToHtmlTag(data?.htmlDescription)
|
||||||
)}
|
)}
|
||||||
className="text-sm lg:text-xl lg:leading-8 text-justify"
|
className="text-sm lg:text-xl lg:leading-8 text-justify space-y-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-2 lg:gap-5 my-8">
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-2 lg:gap-5 my-8">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue