Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10879

prosilver: attachment-link will be displayed wrong, when filename is too long

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.10
    • Fix Version/s: 3.0.12-RC1
    • Component/s: Styles
    • Labels:
      None
    • Environment:
      Firefox 12.0

      Description

      If you upload a file with a long filename the arrow_right.gif image is displayed on the link name instead of being placed on the right border.
      The background-image is positioned with:

      a.right      { background: none no-repeat 95% 60%; }
      

      The link has a width of "padding-left: 12px" plus the length of the filename. If the filename is to long, that 95% will be too left and is displayed on the link.

      Fix:
      Change this:
      Open: \styles\prosilver\template\posting_editor.html
      FIND:

      <dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
      

      Replace with:

      <dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END} attachfile">{attach_row.FILENAME}</a></dd>
      

      Open: \styles\prosilver\theme\links.css
      FIND:

      a.right		{ background: none no-repeat 95% 60%; }
      

      ADD AFTER:

      a.attachfile		{ background: none no-repeat 100% 60%; }
      

      FIND:

      a.right, a.right:active, a.right:visited {
      	padding-right: 12px;
      }
      

      ADD AFTER:

      a.attachfile, a.attachfile:active, a.attachfile:visited {
      	padding-right: 9px;
      }
      

      FIND:

      a.right:hover {
      	color: #d2d2d2;
      	text-decoration: none;
      	background-position: 100% 60%;
      }
      

      ADD AFTER

      a.attachfile:hover {
             padding-right: 12px;
             text-decoration:none;
          }
      

      The different "padding-right" by ":hover" will cause a visible effect, similar to the :hover-effect before.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bantu Andreas Fischer
                Reporter:
                blackhawk.87 blackhawk.87
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: