Home Forums Basel support forum Bug 2 – Columns Display of Search Results

Bug 2 – Columns Display of Search Results

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84651

    Jeriss Cloud Center
    Participant

    When I make a search in the search bar, the number of columns is not always identical.

    In the screenshot 1, we have 11 results :
    – The first 8 are displayed in 4 columns
    – The last 3 are displayed in 3 columns
    Why? It should always be 4 columns and whatever the number of items the last raw, it should be sticked to 4 columns and aligned to the left. Meaning that in this case, the last raw would have 4 columns with the last column empty.

    In the screenshot 2, we have 10 results :
    – The first 8 are displayed in 4 columns
    – The last 2 are displayed in 2 columns
    Why? It should always be 4 columns and whatever the number of items the last raw, it should be sticked to 4 columns and aligned to the left. Meaning that in this case, the last raw would have 4 columns with the last 2 columns empty.

    Attachments:
    You must be logged in to view attached files.
    #84693

    Artem Temos
    Keymaster

    Hi,

    It is not a bug but how CSS flexbox layout works in our theme. You can change it with the following custom CSS code

    .search-extended .autocomplete-suggestions .autocomplete-suggestion {
        -ms-flex-preferred-size: calc(25% - 25px);
        flex-basis: calc(25% - 25px);
        -webkit-box-flex: 0;
        -ms-flex-positive: 0;
        flex-grow: 0;
    }
    
    @media (max-width: 1024px) {
    
    .search-extended .autocomplete-suggestions .autocomplete-suggestion {
        -ms-flex-preferred-size: calc(33.33333% - 22px);
        flex-basis: calc(33.33333% - 22px);
    }
    
    }

    Regards

    #84848

    Jeriss Cloud Center
    Participant

    Thanks. In your theme personalization, there is a Custom CSS area. In which one of the below section should I put your custom code ?

    – Global Custom CSS
    – Custom CSS for Desktop
    – Custom CSS for Mobile
    – Custom CSS for Tablet
    – Custom CSS for Mobile Landscape
    – Custom CSS for Mobile

    #84867

    Artem Temos
    Keymaster

    Add the code to the global custom CSS area.

    #84911

    Jeriss Cloud Center
    Participant

    Great thanks. Issue closed.

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Bug 2 – Columns Display of Search Results’ is closed to new replies.