Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1251663

    Dear support team,
    I have now integrated a cookie banner for the website https://hotel-admiral.de/.
    However, I have the problem that this does not appear in full length on the tablet in landscape format, but is cut off at the top. See screenshot: https://www.osmosis.de/support%20/cookie/tablet.png
    The customer would have liked to have placed the banner at the bottom, but I can only display it in the lower left corner, otherwise it would cover the navigation items “Imprint” and “Data protection”.

    Is it possible to integrate a scroll bar into the cookie banner so that the entire text can be read?
    Or alternatively, make the cookie banner window a little wider so that the entire text can be displayed?

    Thank you for your editing. Many greetings Diana

    #1252785

    Hey Diana,

    Thank you for the inquiry.

    We could use this css code for landscape or tablet view to adjust the width of the consent container and make it shorter in turn.

    @media only screen and (min-width: 768px) and (max-width: 1024px) {
       .avia-cookiemessage-top-left, .avia-cookiemessage-bottom-left, .avia-cookiemessage-top-right, .avia-cookiemessage-bottom-right {
    	width: 40%;
       }
    }
    

    Best regards,
    Ismael

    #1252953

    Dear Ismael

    thank you for the script. I changed the “max-width: 1024px” to 1200px, then the script works wonderfully for the tablet. The problem has already been solved.

    However, I still have the problem with the cookie banner on my mobile phone that it is only partially displayed: see screenshot: https://www.osmosis.de/support%20/cookie/mobile.jpg
    The solution with the widening of the window does not work here.
    But there is still space at the bottom of the cookie banner: Would it be possible to align the cookie banner for the mobile phone at the very bottom of the website – without any gap (margin or padding)?
    On the other hand, I would like to set the font size to 10px for the mobile phone only. But I’m not sure how to set the width information here, so that this is only set to the font size 10px on the mobile phone:
    Maybe somehow like this: – ??? -:
    @media only screen and (max-width: 767px) {
    #top .av-toggle-switch .toggle-label-content {
    font-size: 10px! important;
    font-weight: lighter! important;
    }
    }

    Do you have a solution here?
    Thank you for your editing!
    Many greetings Diana

    #1253830

    Hi,

    Thank you for the update.

    What is the actual model of the phone in the screenshot, or what is its screen resolution? We might be able to use the same css code to adjust the style of the cookie bar on smaller screens such as on mobile phones.

    @media only screen and (max-width: 479px) {
    .responsive .avia-cookiemessage-top-left, .responsive .avia-cookiemessage-bottom-left, .responsive .avia-cookiemessage-top-right, .responsive .avia-cookiemessage-bottom-right {
    	width: 90% !important;
    	left: 5%;
    	right: auto;
    	bottom: 60px;
    }
    }

    And to adjust the font size of the text, please add this code inside the css media query above.

    
    .avia-cookie-consent a.avia_cookie_infolink, .avia-cookie-consent p, .avia-cookie-consent .avia-cookie-consent-button {
    font-size: 10px;
    letter-spacing: .05em;
    }
    

    Best regards,
    Ismael

    #1253865

    Hello Ismael,

    many thanks for the answer. First of all, the question about the resolution of the mobile phone: it is: 1080 x 2400 pixels (405 ppi)

    1. Now I have added your suggested scripts to the Hotel Admiral website (https://hotel-admiral.de/) under CSS – unfortunately this does not change the display on the mobile phone. I also discovered that the problem only exists in the Chrome browser of the mobile phone, in Firefox the cookie banner is zoomed correctly. Here are the screenshots for viewing:
    View mobile phone – Chrome browser: https://www.osmosis.de/support%20/cookie/admiral_Chrome.jpg
    Mobile phone view – Firefox: https://www.osmosis.de/support%20/cookie/admiral_Firefox.jpg
    As I said, the script doesn’t work yet for a better view in the Chrome browser. How could you still solve the issue for the Chrome browser?

    2. I have the same cookie settings (under CSS and under “Extended Styling”) on another website (https://design.osmosis.de/) which I have also built on ENFOLD (like all my sites;)) specified as on the website of the Hotel Admiral (https://hotel-admiral.de/). Everything is displayed correctly on the desktop and tablet. Only again on the mobile phone do I have the same problem as described in point 1 and also the issue that the writing on the mobile phone on the page https://design.osmosis.de/ is not left-aligned, although I do defined in CSS.
    Same theme, same script and yet different view? I am a little at a loss as to how I can force a left-aligned display for the page https://design.osmosis.de/ on my mobile phone. Here are the screenshots for the page https://design.osmosis.de/:
    View mobile phone – Chrome browser: https://www.osmosis.de/support%20/cookie/osmosis_Chrome.jpg
    Mobile phone view – Firefox: https://www.osmosis.de/support%20/cookie/osmosis_Firefox.jpg

    Thank you for your editing. Many greetings Diana

    #1254355

    Hi,

    Thank you for the info.

    1-2.) What happens when you adjust the max-width value from 479px to 1080px? Also, please make sure to remove the browser cache and to toggle or temporarily disable the Performance > File Compression settings after adding the code. The browser might be displaying the cached version of the page without the latest modification.

    Best regards,
    Ismael

    #1254600

    Hello,
    I changed the max-width value from 479px to 1080px and further mord disabled Performance > File Compression settings .
    But unfortunately nothing changed.
    In addition, I still have the problem of the wrong alignment of the font, as described in point 2 above.

    I’ve now looked at it on another mobile device in Google Chrome: the same problem appears here as well.
    What more could I do?

    Best regards Diana

    #1254605

    Hello Ismael,

    please ignore the previous post, because I have to correct myself: the problem is now partially solved:
    – On the https://hotel-admiral.de/ page, the script is now partially effective:
    @media only screen and (max-width: 1080px) {
    .responsive .avia-cookiemessage-top-left, .responsive .avia-cookiemessage-bottom-left, .responsive .avia-cookiemessage-top-right, .responsive .avia-cookiemessage-bottom-right {
    width: 90%! important;
    left: 5%;
    right: auto;
    bottom: 5px;
    }
    }

    Here I entered 5px (instead of 60px) for bottom and so there is now enough space for the cookie banner to be fully displayed.
    (see Scrennshot https://www.osmosis.de/support%20/cookie/admiral_Chrome-2.jpg)
    But it works regardless of whether I change the setting in Performance …
    What does not work is the script with the information on the font transformation: `@media only screen and (max-width: 1080px) {
    .avia-cookie-consent a.avia_cookie_infolink, .avia-cookie-consent p, .avia-cookie-consent .avia-cookie-consent-button {
    font-size: 8px;
    letter-spacing: 0.5em;
    }
    }`

    Nothing changes here even when entering other values. But it is no longer so important to me, especially since the cookie banner is now fully displayed. Point 1 above is hereby solved.

    !!!! However, referring to point 2, I still need support:
    Because the same CSS script (which I used on the hotel-admiral.de page) does not work on the https://design.osmosis.de/ page: Screenshot: https://www.osmosis.de/support%20/cookie/osmosis_Chrome-2.jpg . The settings for performance are also exactly the same. The following points in the cookie banner – display on the mobile phone – do not fit here:

    – Font is centered: how can I get it left-justified? I have already inserted the following in css: .avia-cookie-consent .container {
    text-align: left;
    }
    (The script works for the desktop and tablet – only not on the mobile phone)

    – completely different buttons are displayed on the mobile phone: angular and sometimes with pink letters ??? (The script works for the desktop and tablet – only not on the mobile phone)

    – and also the alignment with bottom: 5px; it does not work

    And above all the big question, why does it work on one side https://hotel-admiral.de and why not on https://design.osmosis.de?

    If you could help me here, I would be very, very grateful!
    Many greetings Diana

    #1254611

    Again briefly to point 1: I have tried a little bit here and found out the following:
    the script already works when you set the mx-width to 480px (with the value 1080 you have the problem that it is displayed over the entire width on the tablet)
    In addition, I was now able to integrate a script to regulate the line height into the code, so the text is shortened by a bit and the legibility on the mobile phone is even better.
    Here is the script I’m using now:

    @media only screen and (max-width: 480px) {
    .responsive .avia-cookiemessage-top-left, .responsive .avia-cookiemessage-bottom-left, .responsive .avia-cookiemessage-top-right, .responsive .avia-cookiemessage-bottom-right {
            width: 90%! important;
    left: 5%! important;
    right: auto! important;
    bottom: 20px! important;
    }
    .avia_cookie_text {
    line-height: 21px! important;
    }
    }

    Nevertheless, I still need a solution for point 2 (see previous post)

    Kind regards, Diana

    #1254620

    hi Ismael,
    good news: I solved the problem for design.osmosis.de (point 2 is now also done!)
    It took a while for its own additional CSS script to collide with.

    Now everything works wonderfully on all cell phones, browsers and also on the most diverse sites.

    Thank you for your patience.
    Many greetings Diana

    #1254868

    Hi,

    Good to know! Glad that it is solved. Please do not hesitate to open a new thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Cookie banner view – tablet landscape orientation’ is closed to new replies.