Okay
  Public Ticket #3055204
Space between Filter and Table
Closed

Comments

  •  1
    Michal started the conversation

    Hello,

    I am trying to reduce the space between a Table Filter and the Table / Graph (when the table is hidden and only the filter remains with likened graph). 

    I tried table's custom CSS as: 

    .wpDataTablesWrapper { margin-bottom: 0px;}
    .wpDataTablesFilter .wpDataTableFilterSection:not(#wdt-clear-filters-button-block):not(#wdt-pf-search-filters-button-block) {  margin-bottom: 0px;   }

    However, as we can see in the pictures below, as a result, there is no effect - the gap is pretty huge - the gap is the same for the table and graph.

    Can you give me a hint what is the proper CSS adjustment?

    (1) FILTER/TABLE GAP

    8139271668.png


    (2) FILTER/GRAPH GAP (HIDDEN TABLE)

    7699971232.png
  •  1,851
    Miloš replied

    Hi, Michal 

    Thanks for reaching out to us

    Sorry that i am repeating the same response as on other ticket.smile.png

    This scenario is not typical for us, so it might take some time to create everything to replicate and come up with custom CSS.

    The quickest way might be if we take a look at your page, and work some CSS on it directly, if that is OK?

    If you can send me a link to the page, to take a look, please.

    Thank you

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,851
    Miloš replied

    Hi, Michal 

    I just forgot to add - in case if the page has any sensitive data, you can send it to as marked as Private response, so that only we can see. Thank you

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Michal replied

    Hello, 

    thank you for the info, the sample page is public as it is only testing demo, thus can be shared.

    The gap between a filter and graph is truly huge, if you will find a way, it would be amazing ;)

    You can find the sample page 

    https://aigensys.com/sample-page/

    The aim is to eliminate the gap between a filter and the associated graph.

    Thank you very much!

  •  1,851
    Miloš replied

    Hey, Michal 

    It seems i made it better, by adding this CSS, can you try please?

    .wpDataTablesFilter .wpDataTableFilterSection#wdt-clear-filters-button-block {
       
        margin-bottom: 0;
        padding-top: 10px;
    }
    .wpDataTablesWrapper {
        margin-bottom: 0px;
    }
    .wpDataTablesFilter .wpDataTableFilterSection:not(#wdt-clear-filters-button-block):not(#wdt-pf-search-filters-button-block) {
        float: left;
        margin-bottom: 0px;
        margin-right: 27px;
        width: 219px;
        min-height: 74px;
     }
    

    2570497960.png


    Now, the only side effect that happens, for this selector :  

    .wpDataTablesFilter .wpDataTableFilterSection:not(#wdt-clear-filters-button-block):not(#wdt-pf-search-filters-button-block)

    when we decrease this  min-height  property too much, this "Clear filters" becomes messed up, like this :

    3581033823.png


    So what i did is, i reduced the width of those other filters, and then "Clear filters", hopped up, as you can see, now it is on same line with the other filters...

    Let me know how does that seem?

    Of course, you can change any of the properties to see if you can get a more suitable style.

    4477410285.png

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Michal replied

    Hello Miloš,

    That is exactly the aimed result, amazing! 

    However, I tried the code with no effect - I even tried changing several WP themes and browsers to see if some CSS collision is not in a play, but no luck - it rather caused a bad change of CSS of the COIN drop-down menu :(

    Back to the topic, your code is implemented to the custom CSS of the table as can be seen via inspection of the page, but no result, what makes it different from Your result?

    Thank you,

    Michal

  •  1,851
    Miloš replied


    Hi, Michal 

    That is odd... Yeah, i am wondering this myself, too.  Basically, i inspected the sample page you sent, and on this page's Chrome inspector tool i applied those styles directly...

    I can certainly take a look at the back-end, and if you can send me a link to the page where the table is - perhaps it is on a different page?

    I double checked this one again, and it seems that some other styles were applied by you successfully, such as on this filter section?

    4627211198.png

    But i do see that on the COIN part of the page, the gap is still there :

    1848186092.png

    If i try to apply same styles again, on my browser it renders the CSS :

    4128922942.png

    Maybe i will spot something if i check your WP-Admin, i can give it a go.

    Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    -

    Alternatively, you can try to add custom CSS directly to the WP page, rather than the table;

    Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways. 

    If you need help with adding custom CSS to the page, please take a look at this article.

    -

    Maybe that will also do the trick, could be even easier, it is worth a shotsmile.png



    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Michal replied

    Hello Miloš,

    thank you very much for your thoughts and hard work!

    You gave me an idea of what is going on under the hood - the dynamic page refresh looks like this

    8462889079.png

    I am assuming that applying CSS code "ex post" - to a static page that was already generated - via your tool is working as table demand during dynamic page rendering is not there anymore. 

    However, when the page is being rendered the table's demand for a refresh zone - the main or minimal body - is strongly present and overwrites any custom table's CSS.

    Thus I will follow your hint and try to create page CSS with blocks and try to make overlapping blocks of a table and associated graph. 

    Let's see how that goes..will keep you updated.

    Thank you very much for your expertise and guidance, respect!

  •  1
    Michal replied

    Hello,

    mission accomplished! 

    3201463504.png


    The solution truly was to create page with several custom blocks/rows with specified CSS and now I can be very flexi with the distance of filter and graph by adjusting a height of the row where table is inserted..the example of the final code in applied :

    Hidden Table where only demanded filter is visible:

    <div data-editable="true" data-name="ope-custom-content-shortcode" data-content-shortcode="wpdatatable id=3" style="height: 130px;" class="row">[wpdatatable id=3]</div>

    Linked Graph to the Filter (table):
    <div data-editable="true" data-name="ope-custom-content-shortcode" data-content-shortcode="wpdatachart id=1" class="">[wpdatachart id=1]</div>


    Thank you once again for you hints!

    Michal

  •  1,851
    Miloš replied

    Hi, Michal

    To be honest, i would not think of this solution;  i am very grateful to you for sharing it.

    I will be sure to pass it along with senior colleagues, perhaps it will be useful for other users in similar scenariosmile.png

    I am happy that my hints were at least useful to get you started, that is awesome!smile.png

    If anything else happens that we might try to assist with, or if you have any questions, of course, don't hesitate to reach out to us with a new ticket.

    All the best!

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   Miloš replied privately