LSaddon::mail: improve CSS of templates editor view

This commit is contained in:
Benjamin Renard 2024-02-22 18:10:28 +01:00
parent 557db5d456
commit 5e9773a015
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
2 changed files with 9 additions and 5 deletions

View file

@ -19,8 +19,8 @@ div.LStabs_content form div.form-footer {
margin-top: 1em; margin-top: 1em;
} }
th.mail_subject { th.mail_subject, td.mail_subject {
width: 10em; width: 20vw;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
@ -32,8 +32,9 @@ th.mail_content, td.mail_content {
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
th.mail_subject { th.mail_subject, td.mail_subject {
widht: auto; width: auto;
max-width: 30vw;
} }
th.mail_content, td.mail_content { th.mail_content, td.mail_content {
max-width: 12em; max-width: 12em;
@ -41,6 +42,9 @@ th.mail_content, td.mail_content {
} }
@media (max-width: 500px) { @media (max-width: 500px) {
th.mail_subject, td.mail_subject {
max-width: 50vw;
}
th.mail_content, td.mail_content { th.mail_content, td.mail_content {
display: none; display: none;
} }

View file

@ -14,7 +14,7 @@
{foreach $templates as $name => $tpl} {foreach $templates as $name => $tpl}
<tr class="{cycle values=",bis"}"> <tr class="{cycle values=",bis"}">
<td><a href="addon/mail/templates?name={$name|escape:"url"}">{$name}</td> <td><a href="addon/mail/templates?name={$name|escape:"url"}">{$name}</td>
<td>{$tpl.subject|escape:"htmlall"}</td> <td class="mail_subject">{$tpl.subject|escape:"htmlall"}</td>
<td class="mail_content">{$tpl.html|escape:"htmlall"}</td> <td class="mail_content">{$tpl.html|escape:"htmlall"}</td>
<td class="mail_content">{$tpl.txt|escape:"htmlall"}</td> <td class="mail_content">{$tpl.txt|escape:"htmlall"}</td>
</tr> </tr>