Metadecidim
Sign in

Process

Report a Bug

not yet on protocol

Display issue on the program page with conferences that last more than ~10 days

Hi everyone,

We have a special use case of the conference space: we use it for a festival with many events over one full month. It highlighted an issue on the desktop view of the program page: all the dates are displayed on one row, and the first dates are pushed on the left of the page, eventually getting out of the screen.

I could reproduce the issue on the current version on nightly.decidim.org.

The issue is not present on mobile view as the program is split on multiple rows (two dates on each).

2 comments

  1. We fixed this using awesome Decidim custom CSS feature and an IA generated CSS to mimick the mobile view multiple row display. Here is the custom CSS (⚠️ the : comments * characters are not displayed correctly here, if you use this CSS, please change the _/ for "star"/)
    ```
    /* 1. Le conteneur en flex-wrap pour aller à la ligne */
    .conference__program-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les boutons */
    list-style: none;
    padding: 0;
    margin: 0;
    }

    /* 2. Chaque élément de liste prend une part égale de l'espace */
    .conference__program-selector li {
    flex: 1 1 auto;
    /*
    - Le premier '1' (flex-grow) : l'élément grandit pour remplir l'espace.
    - Le deuxième '1' (flex-shrink) : l'élément rétrécit si nécessaire.
    - 'auto' : la base est la taille du contenu.
    */
    }

    /* 3. Le bouton prend 100% de la largeur de son parent (le li) */
    .conference__program-selector li .button {
    width: 100%;
    white-space: nowrap; /* Empêche le texte de se couper sur deux lignes dans le bouton */
    overflow: hidden; /* Cache si vraiment trop long (optionnel) */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est coupé (optionnel) */
    display: block; /* S'assure que le bouton se comporte comme un bloc */
    box-sizing: border-box; /* Inclut le padding dans la largeur totale */
    }

    ```

    0 votes up 0 votes down
  2. Thanks for the report Cyril, I have created the issue on GitHub: https://github.com/decidim/decidim/issues/17736

    1 votes up 0 votes down

Sign in with your Atmosphere account to comment.