Can someone please tell me how to change the image size for all catalog items in the fulfiller View and Service Portal.

guzman
Giga Guru

Can someone please tell me how to change the image size for all catalog items in the fulfiller and in the Service Portal. We recently upgraded to Paris,

and the images now look way too big on all catalog item forms (fig.1). Especially in the fulfiller view. I inspected the image for the following catalog item in

fulfiller view, in Chrome, and I found a class called: navpage-layout. It contains a div class called sc_cat_item_image_block where I can manualy change the size attribute.

I would like to know where I should make the changes to make them permanent for all catalog items.

 find_real_file.png

 Sample catalog image:

 Fig.1

 find_real_file.png

 

Thanks,

Juan

1 ACCEPTED SOLUTION

Hi Juan,

I might have found something:

yourinstance.service-now.com/nav_to.do?uri=sys_ui_macro.do?sys_id=770989b10a0a0b0800b1333d892e2cdd

 

UI Macro: catalog_item

find_real_file.png

 

Try and update that large to medium and let us know if that works for you.

 

View solution in original post

12 REPLIES 12

Hi Willen,

 

You nailed!!! That fixed the issue.

You can also access the macro by going to:

System UI > UI Macros, and search for the catalog_item macro.

 

Thank you so much Willen, and the community members who contributed.

 

Thanks,

Juan

Hi Juan,

You are very welcome, happy to help! 🙂

And thank you for marking Correct. Consider marking replies as Helpful as well. That will make a lot of people happy! 😄

You can use the same principle to resize the image.

For example a maximum hight of 40px:

function onLoad() {
	//HTML[data-doctype="true"] .sc_cat_item_image_block img
	var img = document.querySelector(".sc_cat_item_image_block img");
	img.style["max-height"] = "40px";
}

 

Result:

find_real_file.png