Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41074

Additional spacing is seen between images on page

    XMLWordPrintable

Details

    Description

      Summary

      An additional space is seen between images added on a confluence space . This appears in Confluence 5.9 + version.

      Steps to reproduce

      1. Install source editor add-on
      2. Create a page and edit it
      3. Add the below source using the source editor <>
        <p style="text-align: right;">
          <ac:image>
            <ri:attachment ri:filename="example.jpg"/>
          </ac:image>
          <ac:image>
            <ri:attachment ri:filename="example.jpg"/>
          </ac:image>
          <ac:image>
            <ri:attachment ri:filename="example.jpg">
              <ri:page ri:content-title="Events"/>
            </ri:attachment>
          </ac:image>
        </p>
        
      4. Ensure there is not space between the images
      5. Save the page

      Expected Behaviour
      There should be no spacing between the images when page is rendered

      Actual result
      There is some spacing between the images .

      Workaround
      Use the below CSS in Global stylesheet (Please try on test first)

      .wiki-content .confluence-embedded-file-wrapper .confluence-embedded-image {
          display: block;
          margin-left: 0;
          margin-right: 0;
          max-width: calc(100%);
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            msayed Mizan Ali Sayed (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: