fix mobile image handling

This commit is contained in:
Stefan Bühler 2025-01-04 11:11:45 +01:00
parent 034fd7b4ba
commit 5f508f548e

View File

@ -32,7 +32,7 @@ const AppointmentLinkify = {
var AppointmentImage = {
view: function(vnode) {
const {item, settings} = vnode.attrs;
const image_url = item.base.image?.fileUrl ?? (is_mobile ? default_image_mobile : null) ?? settings.default_image;
const image_url = item.base.image?.fileUrl ?? (is_mobile ? settings.default_image_mobile : null) ?? settings.default_image;
let img = image_url ? m(
"img",