Better CSS for .ticket-article-item.system

Sometimes our tickets are monitored by several agents. Internal customer collegues and external users are also notified. Zammad keeps a record of all email notifications for every commentary in the main ticket view. That is helpfull on the one hand side. But it completely clutters the screen if too many users are included in the ticket.

Infos:

  • Used Zammad version: 6.2
  • Used Zammad installation type: package
  • Operating system: Debian 12 (self-hosted), Windows10 (Client)
  • Browser + version: Firefox 115.8.0esr

Expected behavior:

It would be very nice if the ticket screen notifications about sent emails were displayed in the same way as the “popover” information about customers and agents: You touch some element with your mouse and get a nice popover box with the informations about sent emails (with dark/bright theme integration).

My Problem: I am stuck with adopting the “touch-manipulation” action that is indicated in the CSS oft the beautiful popover resulting from a touch of the agent/customer icons in the ticket view.

Actual behavior:

  • in the fresh install it looked like this (and took way too much space on the main ticket view):

  • my custom CSS (see below under “Steps to reproduce”) completely hides the notes (which is OK).
    They pop into the screen on hover/mouseover over each commentary (.ticket-article-item). They do not “popover” but push the following content down (which is not OK: all the ups and downs in the ticket content drive our agents crazy).
    But it is better than before as it doesn’t waste so much space any more. It looks like this:

Steps to reproduce the behavior:

Add the custom CSS to the system:

  • Create /opt/zammad/app/assets/stylesheets/custom/notifications.css
  • Add CSS:
.ticket-article-item {
padding-bottom: 0px;
}

.ticket-article-item .task-subline {
margin-top: 2px;
}

.article-content {
margin-top: 20px;
}

.ticket-article-item.system {
 display: none;
}

.ticket-article-item:hover ~ .ticket-article-item.system {
/*  display: inline-flex; */
 display: block;
 color: grey;
 line-height: 1;
 padding-bottom: 0;
}
  • Owner and permissions caveats are treated in “Custom CSS foes”.
  • Precompile with zammad run rake assets:precompile
  • Restart with systemctl restart zammad-web
1 Like

The CSS you are using is hiding the system text, that means nothing is in that space. If that’s what you want, great. Then you have it show up when you hover, that puts it back in that space. Everything moves to make it fit.

I would look at using something more along the lines of a tooltip style and make the text popup over top of everything else on the page. Like a tooltip box.

I’ll have to play around to figure out exactly what CSS will work, but my guess is you would want to add:

position: absolute;
z-index: 100; (Maybe this will work to put the text over top instead of shifting everything)

Then you’d need something as a place holder for each line. Could you use a background image, maybe even put them all in a grid instead of line below line. I’m going to have to give this a try.

1 Like

when i first tried, i already fiddled with position and z-index: position: absolute seemed to block z-index. i didnt get it done.
and i do not really get what you mean concerning place holders.
i’d be enthusiastic if you manage to give it a try.