Allow Image set to Original size that is placed in Responsive Table to fit in browser size

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Editor - Core
    • None
    • 3

      Information

      Setting the size of the attached image to "Original" will allow the image to scale(resize) automatically to fit the screen browsing Confluence (eg: Browser) in the case if the browser size is smaller than the image.

      Same goes to placing an image with the size set to "Original" inside a table with Fixed Width, the image will scale(resize) according to the width of the table that is set by the editor.

      Problem Definition

      However, placing an image with the size set to "Original" inside a table with Responsive width will cause the responsiveness of the table to scale up its border to the actual Original image size, ignoring the browser size and showing a horizontal scroll bar in the table, which can break the experience of displaying a large sized image in a Responsive table.

      The behavior described above can be seen in the videos below:

      Suggested Solution

      Allowing both the Table and Image to be responsive to the browser size so everything can be shown in the screen without scrolling.

      Workaround

      To ensure the table fits the browser size, you can add this custom CSS at either the site level (which will affect all pages in the instance) or the space level (which will affect only pages in that particular space).

      table.confluenceTable td.confluenceTd img, table.confluenceTable td.confluenceTd .confluence-embedded-file-wrapper img, table.confluenceTable th.confluenceTh .confluence-embedded-file-wrapper img {
            max-width: inherit;
      } 

      To edit a space's CSS style sheets:

      1. Go to the space and choose Space tools > Look and Feel from the bottom of the sidebar.
      2. Choose Stylesheet then Edit.
      3. Paste the custom CSS into the text field.
      4. Save the changes.

      To edit the global CSS stylesheet:

      1. Choose   > General Configuration > Stylesheet
      2. Choose Edit.
      3. Paste the custom CSS into the text field.
      4. Choose Save

        1. atlassian logo2.png
          65 kB
          Damien Tan
        2. Image Scale vs Table Scale.mp4
          1.33 MB
          Damien Tan
        3. Original Image Size.mp4
          790 kB
          Damien Tan

            Assignee:
            Unassigned
            Reporter:
            Damien Tan
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: