• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • [4.1 Alpha 2] FA5 category page icon too wide and is cut off

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [4.1 Alpha 2] FA5 category page icon too wide and is cut off

    • Issue Tools
      • View Changes
    1. issueid=5658 February 21, 2019 6:23 AM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 2] FA5 category page icon too wide and is cut off

      On XenForo 2.1, the category (sitemap) icon does not fully fit inside the containing element in the page title area and also content lists. The FontAwesome 5 version of the sitemap icon seems to be wider than FA4's version.

      Examples:
      • Page title area icon: https://www.vaultwiki.org/xf-wiki/in...=Category:Demo
      • Content list icon: https://www.vaultwiki.org/xf-wiki/in...Area-3&do=list


      In the recent activity sidebar widget, the category icon isn't cut off but it does overflow right up to the text with very little to no whitespace.

      ---

      Also related but much less noticeable, the FA5 folder icon for Areas is cut off slightly in the "Wiki Areas" block on the index page and "Sub-Areas" elsewhere in the wiki, e.g. https://www.vaultwiki.org/xf-wiki/in...rnative-Area-3. If you look closely, the text-shadow on the right edge is missing.


      EDIT: For some reason pasting Wiki XF demo urls here adds an extra = character. Let's see if a code block will workaround this quirk (just copy and paste the url)
      Code:
      Page title area icon: [url]https://www.vaultwiki.org/xf-wiki/index.php?wiki/&title=Category:Demo[/url]  (Page name: Category:Demo)
      
      Content list icon: [url]https://www.vaultwiki.org/xf-wiki/index.php?wiki/&title=Alternative-Area-3&do=list[/url]  (Page name: Alternative Area 3)
    Issue Details
    Issue Number 5658
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Styling / CSS
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.1.0 Alpha 2
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 21, 2019 1:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      Unfortunately the makers of Font Awesome saw fit to redraw all existing glyphs when making version 5, so icons will look slightly different in some way. Not all glyphs have the same aspect ratio anymore. And because not all glyphs have the same aspect ratio, it creates a problem when trying to use certain glyphs in a way that looks visually consistent with the rest of XenForo.

      Using CSS, there is no way to make font characters fit into a specific width or into a container. They are only drawn based on one dimension (font-size) which is related to the height difference between the top and bottom of the font's tallest and lowest characters. That is the way fonts and CSS work together. It is entirely possible to design a font where one - character looks like this: ---------------------------, and another character looks like this =. Placing both characters side by side using the same font-size (the font-size I am typing in now), we have:
      = ---------------------------
      There are two ways to deal with this situation when we want either to occupy a defined width:
      1. Crop anything larger than the width
      2. Use different font sizes for different characters

      Fortunately in VaultWiki, specific page-types provide extra CSS classes which allow us to modify the font-size of some icons on a per-type basis. It will also make the characters look inconsistent in terms of height, which will be especially noticeable in content lists that contain multiple page-types.

      In the next release, I reduced the font-size of the following types by 20% in title-boxes and content-lists: category, template, discussion. The widths now fit inside the container, but again the heights are now shorter than other icons so they may look strange near each other. However, this will probably make icons that use custom characters look weird, since it wouldn't be based on the correct page-type. In that case, custom styling might be necessary. We may try to handle this in the future if it becomes a big issue.

      One other tweak I made involved calculating the font-size for all characters in a way that considered the border and padding of the icons in certain contexts. This change resolves the issue of the area icon being cut off slightly. But by itself it did not resolve the category icon issue because of how much wider that icon is.

      These changes are made in XenForo 2.1 only because it supports LESS and because I have only noticed the issue with the FA5 versions of the characters.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 3:02 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.