Merge branch 'dev-restructure' of https://gitlab.com/hanifsalafi/web-humas-polri into prod
This commit is contained in:
commit
9befccf503
|
|
@ -613,7 +613,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isDetail ? (
|
{isDetail ? (
|
||||||
detailfiles ? (
|
detailfiles.length > 0 ? (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
<Image
|
<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="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">
|
<div className="h-fit bg-white rounded-lg p-8 flex flex-col gap-1">
|
||||||
<p className="text-sm">Thubmnail</p>
|
<p className="text-sm">Thubmnail</p>
|
||||||
{isDetail ? (
|
{isDetail && thumbnail !== "" ? (
|
||||||
<Image
|
<Image
|
||||||
width={480}
|
width={480}
|
||||||
height={360}
|
height={360}
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ export default function MedolUpdate() {
|
||||||
<Image
|
<Image
|
||||||
width={480}
|
width={480}
|
||||||
height={480}
|
height={480}
|
||||||
alt="tes"
|
alt="thumbnail"
|
||||||
className="object-cover !h-[20vh]"
|
className="object-cover !h-[20vh]"
|
||||||
// src={newsItem.thumbnailLink}
|
// src={newsItem.thumbnailLink}
|
||||||
src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`}
|
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
|
<Image
|
||||||
width={480}
|
width={480}
|
||||||
height={480}
|
height={480}
|
||||||
alt="tes"
|
alt="thumbnail"
|
||||||
className="object-cover !h-[20vh]"
|
className="object-cover !h-[20vh]"
|
||||||
src={newsItem?.image}
|
src={newsItem?.image}
|
||||||
/>
|
/>
|
||||||
|
|
@ -367,7 +367,7 @@ export default function MedolUpdate() {
|
||||||
<Image
|
<Image
|
||||||
width={480}
|
width={480}
|
||||||
height={480}
|
height={480}
|
||||||
alt="tes"
|
alt="thumnail"
|
||||||
className="object-cover !h-[20vh]"
|
className="object-cover !h-[20vh]"
|
||||||
src={newsItem?.thumbnail}
|
src={newsItem?.thumbnail}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue