Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10879

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.12-RC1
    • 3.0.10
    • Styles
    • None
    • Firefox 12.0

      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.

            bantu Andreas Fischer [X] (Inactive)
            blackhawk.87 blackhawk.87
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: