Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #372989

    Hi,

    I recently noticed an issue with the two tables I created while viewing in mobile view:
    http://littledigitalagency.com/Client/openfin/runtime/openfin-vs-chrome/
    and
    http://littledigitalagency.com/Client/openfin/runtime/evaluate/

    The columns do not line up with their correct row data cell. The easiest example to view (it is like this on both tables) in on this table:
    http://littledigitalagency.com/Client/openfin/runtime/evaluate/ . If you pull the browser window in to a phone size you can see the first green “35” should be under ‘OpenFin’ which it is not. “OpenFin” is shown with the next column’s #. The last column heading “Awesomium” is dropped altogether.

    Any ideas?

    I believe it has to do with some mobile code I placed trying to get rid of all those empty rows under the row Headings such as under “Chromium”. When viewed on a Phone those empty rows do not appear but I have a feeling it is causing other issues.

    Here is all of the Table Custom CSS:

    /**disable icon transition**/
    
    .avia_transform .avia-table .av_font_icon {
    opacity: 1 !important;
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    }
    /*End Disable icon transition*/
    
    div .avia-table {
        border-right-style: solid;
        border-right-width: 1px;
    }
    div .avia-table tr {
    	background-color: #F1F8FC !important;
    }
    
    .avia-data-table .avia-desc-col {
        text-align: left !important;
    }
    
    tr:first-child th {
        border-top-style: solid;
        border-top-width: 1px;
        text-align: center;
        text-transform: none;
    	font-family: "Roboto", sans-serif !important;
    	font-size: 18px !important;
    	font-weight: 600 !important;
    	letter-spacing: 0px !important;
    	color: #292929 !important;
    	background-color: #DFF1F5 !important;
    	padding: 15px 30px 15px 30px !important;
    }
    
    .avia-heading-row .avia-desc-col, .pricing-table {
    	color: #292929 !important;
    	font-family: "Roboto", sans-serif !important;
    	font-size: 18px !important;
    	font-weight: 600 !important;
    	letter-spacing: 0px !important;
    	text-transform: none !important;
    	background-color: #E6F4FE !important;
    	border-left: 1px solid #e1e1e1 !important;
    }
    .avia-desc-col {
        background-color: #F1F8FC !important;
        font-family: "Roboto",sans-serif !important;
        font-weight: 300 !important;
        text-align: right;
        text-transform: none !important;
    }
    #top tr.avia-heading-row:first-child .avia-desc-col {
        background-color: #F1F8FC !important;
    	border-bottom-style: solid;
    	border-bottom-width: 1px;
    	border-left: none !important;
    }
    .avia-heading-row th {
    	background-color: #E6F4FE !important;
    	border-left: none !important;
    	border-right: none !important;
    }
    /*OpenFin BG Color*/
    tr.avia-heading-row:first-child th:nth-child(2) {
    	background-color: #D0E2EF !important;
    	border-left: 1px solid #e1e1e1 !important;
    }
    tr.avia-heading-row:first-child th:nth-child(3) {
    	border-left: 1px solid #e1e1e1 !important;
    }
    tr.avia-heading-row:first-child th:nth-child(4) {
    	border-left: 1px solid #e1e1e1 !important;
    }
    tr.avia-heading-row:first-child th:nth-child(5) {
    	border-left: 1px solid #e1e1e1 !important;
    }
    tr.avia-heading-row:first-child th:nth-child(6) {
    	border-left: 1px solid #e1e1e1 !important;
    }

    Here is the questionable Mobile code for the tables:

    @media only screen 
    and (min-device-width : 320px) 
    and (max-device-width : 480px) {
    .avia-heading-row th:nth-child(2) {
    	display: none !important;
    }
    .avia-heading-row th:nth-child(3) {
    	display: none !important;
    }
    .avia-heading-row th:nth-child(4) {
    	display: none !important;
    }
    .avia-heading-row th:nth-child(5) {
    	display: none !important;
    }
    .avia-heading-row th:nth-child(6) {
    	display: none !important;
    } 
    }
    #373177

    Hey Slade!

    On my end the “Openfin” and Chrome” headings are not displayed because your using this code.

    .avia-heading-row th:nth-child(2) {
    	display: none !important;
    }
    .avia-heading-row th:nth-child(3) {
    	display: none !important;
    }

    I think you are actually wanting to hide them though because the headings are going to display in a list on mobiles but with how your using them it’s probably not going to look good so it would be best to hide them.

    Best regards,
    Elliott

    #373297

    Hi Elliot,

    I attempted to change the “display: none” to “visibility” hidden” or “collapse”…but it didn’t help. The next thing I did was to comment out any custom css that dealt with the Tables…still no luck.

    Here are two screenshots – desktop and mobile to better explain the issue:

    Desktop

    Mobile

    #373321

    Hi!

    Ok for the second table your using this CSS to include the headings right?

    .avia-table-1 td:nth-of-type(2):before {
        content: "OpenFin";
    }

    Change the 2 to 1 like so.

    .avia-table-1 td:nth-of-type(1):before {
        content: "OpenFin";
    }

    Regards,
    Elliott

    #373369

    Hi!

    No…I don’t have any custom css like that. All of my custom css is shown a few messages up in this thread.

    #373587

    Hi!

    Well I see it in your source code. If you did not add it yourself then try deactivating all plugins to see if they are adding it.

    Regards,
    Elliott

    #373737

    I would ‘assume’ if you are seeing it in the source code it is coming from the Table that comes with Enfold.

    I have deactivated all plugins, commented out all custom css and emptied my cache. Still isn’t working.

    #373838

    Hi!

    I think the problem is that you your “Chromium” cell is a heading also. Instead try switching it to a regular table data cell and the headings should be picked up correctly.

    I think your right, we must have some kind of javascript in the theme files which sets that CSS but I could not find it anywhere. But I think the fact that your using multiple rows of headings is messing it up. See here on our demo, http://kriesi.at/themes/enfold/shortcodes/pricing-and-data-tables/, where each heading matches up with the cells beneath it.

    Best regards,
    Elliott

    #373994

    Hi Elliott,

    That didn’t help either as you can see here: http://littledigitalagency.com/Client/openfin/runtime/evaluate/

    #374133

    Hi!

    It’s still set as a table heading in your source code. It needs to be a regular table data cell and not a heading.

    Go ahead and remove the chromium row completely and you’ll see it should work as in our demo, http://kriesi.at/themes/enfold/shortcodes/pricing-and-data-tables/.

    Regards,
    Elliott

    • This reply was modified 9 years, 10 months ago by Elliott.
    #374418

    I took that row out completely and you can see that the column headings still move down an extra row.
    http://littledigitalagency.com/Client/openfin/runtime/evaluate/

    #374732

    Hi!

    In your first heading row you have the first data cell empty which is probably what is causing the empty heading on mobile view. I recommend setting a value in that cell and then change it’s color via CSS if you do not wish it to display.

    Cheers!
    Elliott

    #374808

    Hi Elliot!

    I thought you might be on to something here but as you can see: http://littledigitalagency.com/Client/openfin/runtime/evaluate/ I placed the text “TEST” into that first cell. When the browser window is scaled down it lines up under the “35” instead of OpenFin. It still isn’t lining up correctly for some reason.

    #375223

    Hi!

    Deactivate all plugins and send us a WordPress login. Also remove all of your custom CSS.

    Regards,
    Elliott

    • This reply was modified 9 years, 10 months ago by Elliott.
    #378050

    I deactivated all plugins and removed all custom css and it still didn’t work. The client felt this fix was taking too long and has decided to scrap the idea of the tables being responsive as it wasn’t working.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Enfold Table Issue in Mobile view’ is closed to new replies.