Announcement

Collapse
No announcement yet.

Fix for shrinking logo on mobile landscape view

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod Fix for shrinking logo on mobile landscape view

    If you have a logo taller than 40px in your vBulletin 5 forum, it will be shrunk to 40px height when you rotate your smartphone to landscape view. This is because by default, vB5 sets max-height of logo to 40px when in landscape mode.

    To fix this issue, you need to override that and remove the max-height. To do this, add the very simple CSS below in css_additional template in AdminCP or in Sitebuilder > Style > CSS Editor.

    Code:
    /* Fix for small logo height in mobile landscape view - START */
    .l-small #header .site-logo img {
        max-height: none;
    }
    /* Fix for small logo height in mobile landscape view - END */
    Enjoy!
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    Thank you!

    Comment


      #3
      This wont fix the Ipad issues will it?

      Comment


      • glennrocksvb
        glennrocksvb commented
        Editing a comment
        No. This is for mobile phones only.

      #4
      Solved it. Thanks.
      Works in vB 5.6.0.

      Comment


        #5
        I have tried it in 5.7.4 and is not working.
        Click image for larger version

Name:	1.jpg
Views:	159
Size:	85.5 KB
ID:	27124Click image for larger version

Name:	2.jpg
Views:	146
Size:	43.6 KB
ID:	27125

        Comment


          #6
          tenis, I checked your site and I don't see the CSS code in css_additional.css template. Where did you add the code?
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment


            #7
            It was removed already, I did not expected such a quick answer. Thank you.

            I will put it again right now.

            Comment


              #8
              Still not working

              Comment


                #9
                I checked your site and the vB support forum and I noticed that on mobile landscape mode, it's showing desktop view. I'm not sure if this change was done intentionally or it is a bug. The body tag used to have l-small class on mobile but it was changed to l-desktop class on vB 5.7.5. I think this is a bug. I'll post on vB support forum.
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #10
                  I posted in vB support forum.

                  Helpful? Donate. Thanks!
                  Buy me a coffeePayPal QR Code
                  Fast VPS Host for vBulletin:
                  A2 Hosting & IONOS

                  Comment


                    #11
                    It's holiday today in the US so we may not get a response from their staff today.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #12
                      I put this code in the Sitebuilder css box on my vB6 demo site and it didn't work. What'd I do wrong?

                      Comment


                        #13
                        Is the demo site available to the public? Can you post the link? I need to inspect the page in order to see what's going on. Other custom CSS might be overriding the CSS code of this mod.
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment


                          #14
                          If the code in the first post doesn't work for some reason or if you also installed this other mod, then you need to change the code to:

                          Code:
                          /* Fix for small logo height in mobile landscape view - START */
                          #header .site-logo img {
                              max-height: none;
                          }
                          /* Fix for small logo height in mobile landscape view - END */

                          Helpful? Donate. Thanks!
                          Buy me a coffeePayPal QR Code
                          Fast VPS Host for vBulletin:
                          A2 Hosting & IONOS

                          Comment


                            #15
                            The new code worked! Thanks. My site is the temporary vB6 demo site that I've been testing.

                            Comment

                            Users Viewing This Page

                            Collapse

                            There is 1 user viewing this forum topic.

                            • Guest Guest

                            Latest Posts

                            Collapse

                            Working...
                            X
                            Searching...Please wait.
                            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                            Please push the back button and reload the previous window.'
                            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                            Please push the back button and reload the previous window.'
                            An internal error has occurred and the module cannot be displayed.
                            There are no results that meet this criteria.
                            Search Result for "|||"