Loading client/qml/PropertyPanel.qml +3 −5 Changes for client/qml/PropertyPanel.qml: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -315,14 +315,12 @@ ColumnLayout { var mediaId = dotIdx > 0 ? filename.substring(0, dotIdx) : filename var mediaExt = dotIdx > 0 ? filename.substring(dotIdx + 1) : "webp" /* Build relative src: /media/getimage/UUID.ext (without server prefix) */ var relIdx = mediaPath.indexOf("/media/getimage/") var relSrc = relIdx >= 0 ? mediaPath.substring(relIdx) : mediaPath /* Keep the full pathname as src (e.g. /blog/media/getimage/UUID.ext) so the server prefix is preserved for rendering */ propPanel.saveProperties({ "media_id": mediaId, "media_ext": mediaExt, "src": relSrc "src": mediaPath }) } else { propPanel.saveProperty(fieldKey, url) Loading client/widgets/image/image.cpp +15 −0 Changes for client/widgets/image/image.cpp: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -377,14 +377,29 @@ extern "C" { val = json_object_get_string(val_obj); if (val) m_height = val; } if (json_object_object_get_ex(obj, "hidden", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); hidden = (s && strcmp(s, "true") == 0); } else { hidden = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "m_hidden", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); m_hidden = (s && strcmp(s, "true") == 0); } else { m_hidden = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "fullscreen", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); fullscreen = (s && strcmp(s, "true") == 0); } else { fullscreen = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "custom_css", &val_obj)) { val = json_object_get_string(val_obj); if (val) customCss = val; Loading Loading
client/qml/PropertyPanel.qml +3 −5 Changes for client/qml/PropertyPanel.qml: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -315,14 +315,12 @@ ColumnLayout { var mediaId = dotIdx > 0 ? filename.substring(0, dotIdx) : filename var mediaExt = dotIdx > 0 ? filename.substring(dotIdx + 1) : "webp" /* Build relative src: /media/getimage/UUID.ext (without server prefix) */ var relIdx = mediaPath.indexOf("/media/getimage/") var relSrc = relIdx >= 0 ? mediaPath.substring(relIdx) : mediaPath /* Keep the full pathname as src (e.g. /blog/media/getimage/UUID.ext) so the server prefix is preserved for rendering */ propPanel.saveProperties({ "media_id": mediaId, "media_ext": mediaExt, "src": relSrc "src": mediaPath }) } else { propPanel.saveProperty(fieldKey, url) Loading
client/widgets/image/image.cpp +15 −0 Changes for client/widgets/image/image.cpp: 15 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -377,14 +377,29 @@ extern "C" { val = json_object_get_string(val_obj); if (val) m_height = val; } if (json_object_object_get_ex(obj, "hidden", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); hidden = (s && strcmp(s, "true") == 0); } else { hidden = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "m_hidden", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); m_hidden = (s && strcmp(s, "true") == 0); } else { m_hidden = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "fullscreen", &val_obj)) { if (json_object_is_type(val_obj, json_type_string)) { const char *s = json_object_get_string(val_obj); fullscreen = (s && strcmp(s, "true") == 0); } else { fullscreen = json_object_get_boolean(val_obj); } } if (json_object_object_get_ex(obj, "custom_css", &val_obj)) { val = json_object_get_string(val_obj); if (val) customCss = val; Loading