• ResolvedPlugin Contributor netzgestaltung

    (@netzgestaltung)


    Hi there,

    working on a new form i noticed that the line-height in my form is different from what my CSS says.

    It comes from /cf7-grid-layout/public/css/cf7-grid-layout-public.css

    .cf7sg-container{
     line-height:1.2;
    }
    

    a while ago you entered a condition that this should not happen when the grid tab in editmode is disabled: https://www.ads-software.com/support/topic/i-dont-want-to-use-the-grid-layout-how-do-i-create-my-own-forms/

    maybe this was overlooked in further development, /cf7-grid-layout/public/js/cf7-grid-layout-public.js gets called and there are lots of elements with “cf7sg” classNames/IDs like “cf7sg-container”

    I was starting deregistering the css, but that will be a “too hard” solution.

    What do you recommend?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    I was starting deregistering the css, but that will be a “too hard” solution.

    What do you recommend?

    it should not load when the grid is not used. The plugin is now oncfigured for performance and loads only the css/js libraries it requires on a per-form basis.

    So it’s possible there is a small bug here.

    Can you share your form page where this is happening?

    Plugin Contributor netzgestaltung

    (@netzgestaltung)

    Hi,

    not with the current development, but its also visible on another page:
    https://www.schlange-co.com/en/profile/ -> scroll down and click on “Please contact us for additional information”. inspect the form with the browser debugger, look also for Network analyses.

    Br,
    tom

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I had a look on my test server too and realised the grid css/js get loaded even if they are not required…(there are a few cases when a non-grid form requires them).

    I tweaked the code to fix this in v4.1.1 Can you upgrade and confirm it is works for you?

    Plugin Contributor netzgestaltung

    (@netzgestaltung)

    Yes, they are gone. The markup stayed, only a minor issue then.
    Thank you!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    The markup stayed

    I don’t understand what you mean by the markup?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS and markup loaded when no grid used’ is closed to new replies.