Skip to content

Commit a7da907

Browse files
author
Timothy Dodd
committed
Improve table layout and styling in mail-group component
Enhanced `.table-header` and `.table-row` with a grid layout, column configurations, and improved spacing for better structure. Added styles for `.table-header` to improve visual hierarchy and updated `.table-row` with transitions and an `.expanded` state for better interactivity. Adjusted `.groups-table .table-row` padding in the media query for smaller screens to improve responsiveness.
1 parent 9d526f7 commit a7da907

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

src/MailVoidWeb/src/app/_components/mail-settings-modal/mail-group/mail-group.component.scss

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,26 @@
4444
overflow: hidden;
4545

4646
.table-header, .table-row {
47+
display: grid;
4748
grid-template-columns: 1.5fr 2fr 0.75fr 1fr 0.75fr;
49+
gap: 0.5rem;
50+
padding: 0.5rem 1rem;
51+
align-items: center;
52+
}
53+
54+
.table-header {
55+
font-size: 0.75rem;
56+
font-weight: 600;
57+
color: var(--comment);
58+
text-transform: uppercase;
59+
letter-spacing: 0.03em;
60+
}
61+
62+
.table-row {
63+
font-size: 0.875rem;
64+
padding: 0.625rem 1rem;
65+
transition: background-color 0.15s ease;
66+
&.expanded { background-color: var(--bGLight); border-bottom-color: transparent; }
4867
}
4968
}
5069

@@ -109,7 +128,7 @@
109128

110129
@media (max-width: 768px) {
111130
.groups-table .table-header { display: none; }
112-
.groups-table .table-row { grid-template-columns: 1fr; gap: 0.375rem; }
131+
.groups-table .table-row { grid-template-columns: 1fr; gap: 0.375rem; padding: 0.75rem 1rem; }
113132
.col-actions { justify-content: flex-start; margin-top: 0.25rem; }
114133
.edit-fields { flex-direction: column; }
115134
.inline-form-body .form-row {

0 commit comments

Comments
 (0)