Change the order comments inside of tickets in end-user view

Répondu

5 Commentaires

  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Ash

    Add the given CSS to your style.css file at the bottom area.

    .table.my-activities-table tbody {
      display: flex;
      flex-direction: column-reverse;
    }

      .my-activities-table.table tr {
        display: flex;
      }

      .my-activities-table th:first-child, 
      .my-activities-table td:first-child {
        width: 50%;
        display: block;
      }

     .my-activities-table td:not(:first-child),
     .my-activities-table.table th:not(:first-child) {
        display: none;
        width: 15%;
      }

    @media (min-width:768px){
       .my-activities-table td:not(:first-child),
       .my-activities-table.table th:not(:first-child) {
        display: table-cell;
      }
    }



    Screenshot for the same:




    Output is:




    Default order is:



     

     

    2nd is:

    Is it also possible to change where the exact date and time is displayed on the comments rather than "2 months ago"

     

    Currently code is: without format='long' 

     

    Default output is:-

     

    After adding the format:- format='long', see this

     

    Output after adding the format=long:-

     

     

     

     

     

     

    Thanks

    Team

    1
  • Holly

    Hi Ifra,

    Thank you! But is there any way to change the order of the comments inside the tickets for the end users? Currently this still shows the oldest comment on top

    1
  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi Holly,

    Which version are you using? Can you share the public URL?, actually I don't have content to test order of table rows.

    0
  • Holly

    Hi Ifra!

    I appreciate the reply but unfortunately can't share the public URL. Thank you for the offer though. I'll keep on messing around with the instance!

    0
  • Ulises Soto

    I agree with Holly,

    When the ticket is opened, we should show the comments ordered by the last comment, not by the first. This will be easier for the customer to interact with the ticket because the button ">>" is not sending to the last comment, they need to click on "Next" many times to add their comments.

    0

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk