Warning "Could not detect host of open graph image URI ..."

It would be nice, when popups would not show at all when opening Collective pages in view mode. In this case links are clicked to open them and not to get a popup for it with additional functions.

However - when disabling open graph the popup for regular links still has some empty space below the link. Also the previews have additional margins on top and bottom which don’t make sense.

This is my custom CSS to fix this (in Nextcloud 32.0.1):

.widgets--list {
  min-height: 0 !important;
}
.link-view-bubble__reference-list {
  padding: 0 !important;
}
.link-view-bubble .widget-custom {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

What this will do:

  1. If there is no preview, then the popup will not have an empty space below the link.
  2. There is no unneccessary padding for the preview area.
  3. If there is a preview, there will not be unneccessary margins.

So the result will look like this for web links:

And like this for internal links (text blurred for privacy reasons):