Merge branch 'dev-restructure' of https://gitlab.com/hanifsalafi/web-humas-polri into prod

This commit is contained in:
Rama Priyanto 2025-05-17 22:13:52 +07:00
commit 9befccf503
2 changed files with 5 additions and 5 deletions

View File

@ -613,7 +613,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
)}
{isDetail ? (
detailfiles ? (
detailfiles.length > 0 ? (
<>
<div>
<Image
@ -693,7 +693,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
<div className="w-full lg:w-[35%] flex flex-col gap-8">
<div className="h-fit bg-white rounded-lg p-8 flex flex-col gap-1">
<p className="text-sm">Thubmnail</p>
{isDetail ? (
{isDetail && thumbnail !== "" ? (
<Image
width={480}
height={360}

View File

@ -183,7 +183,7 @@ export default function MedolUpdate() {
<Image
width={480}
height={480}
alt="tes"
alt="thumbnail"
className="object-cover !h-[20vh]"
// src={newsItem.thumbnailLink}
src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`}
@ -274,7 +274,7 @@ export default function MedolUpdate() {
<Image
width={480}
height={480}
alt="tes"
alt="thumbnail"
className="object-cover !h-[20vh]"
src={newsItem?.image}
/>
@ -367,7 +367,7 @@ export default function MedolUpdate() {
<Image
width={480}
height={480}
alt="tes"
alt="thumnail"
className="object-cover !h-[20vh]"
src={newsItem?.thumbnail}
/>