mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-10 18:41:01 +00:00
[Web] Even out badge and tag sizes in tables
- Use the normal cursor on non-orderable headers. The expand column header kept a pointer cursor from sorting_asc although clicking it does nothing. - Let icons in badges inherit the badge font size, like .btn .bi, and keep their glyph from adding line height. The global 12pt icon size made e.g. the "SSO @" badge in Last mail login taller than the IMAP and SMTP badges next to it. Tag badges keep their 12px icon. - Drop the vertical margin of tag badges inside tables. It is meant for the tag editor in edit forms and made the Tags entry of the expanded row taller than the others. - Center tag badge captions: the 12px tag icon stretched the 10.5px badge line and pushed the caption below center. Signed-off-by: Moritz Stückler <moritz@bitbetter.de>
This commit is contained in:
2 files changed
+14
No files matched your search
@@ -44,6 +44,7 @@ table.dataTable td.dt-control:before {
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_desc {
|
||||
padding-right: 0.5rem;
|
||||
cursor: auto;
|
||||
}
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc:before,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc:after,
|
||||
@@ -58,6 +59,11 @@ table.dataTable.table-striped>tbody>tr>td>input[type="checkbox"] {
|
||||
/* centers the 1em checkbox in the 1.5em line, level with the expand control */
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
/* the vertical margin is meant for the tag editor in edit forms, in tables it only adds height */
|
||||
table.dataTable .tag-badge {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
td.dtr-col-lg {
|
||||
min-width: 350px;
|
||||
word-break: break-word;
|
||||
|
||||
Reference in new issue
Block a user