roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.57k stars 1.6k forks source link

Correct way to alter messagelist ordering of subject, fromto and date|size #9409

Closed lachlan-00 closed 1 month ago

lachlan-00 commented 1 month ago

Hi,

I've changed the generated CSS to order the subject on top which is how i'd prefer it.

image

I did this by just updating the CSS with an order as i can't see these details in mail.html

.messagelist td.subject span.subject {
  order: 1;
}

.messagelist td.subject span.date, .messagelist td.subject span.size {
  order: 3;
}

.messagelist td.subject span.fromto {
  order: 2;
}

I'm trying to work out where this is set, the template calls roundcube objects in the template here. https://github.com/roundcube/roundcubemail/blob/d9d51b8d9c8bdab60c2b994bd06d75a3e75f2767/skins/elastic/templates/mail.html#L104

Where is that object created? (Possibly /program/actions/mail?)

I tried updating skins/elastic/styles/styles.less but i'm unsure how that works compared to regular css.

So TLDR is this something that can be configured or should i just keep my css changes?

Thanks for taking the time to read through this, the bold text on the bottom was really irking me.

alecpl commented 1 month ago

It is not configurable. Maybe in javascript you could work around widescreen_list_template use and/or utilize the insertrow event. You still will need your css styles.

ps. less files are used to build css, the process is described in the skin readme file.

lachlan-00 commented 1 month ago

no problem, thanks for responding.