fix: contacts columns align; ticking a box no longer moves the list
- Wider screens use fixed columns for checkbox, name, email, phone and Remove, so a missing phone or a long email no longer shifts the others. Phones keep the stacked layout. - The contacts pick bar reserves the height of the Remove selected button, so the button appearing does not push the list down.
This commit is contained in:
1 parent
b142dd9748
commit
2e855dd7ba
1 file changed
+33
@@ -3913,6 +3913,39 @@ button.btn-quiet::before {
|
|||||||
margin: 0 0 0 auto;
|
margin: 0 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Wider screens: fixed columns, so a missing phone or a long email never shifts the others. */
|
||||||
|
@media (min-width: 42.001em) {
|
||||||
|
.contact-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto minmax(8rem, 1.1fr) minmax(0, 1.6fr) 8.5rem auto;
|
||||||
|
gap: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-phone {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-remove {
|
||||||
|
margin: 0;
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The pick bar keeps the height of the Remove selected button, so ticking a box never pushes the list down. */
|
||||||
|
.contacts-board .pick-bar {
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 2.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contacts-board .pick-bar .btn {
|
||||||
|
min-height: 2.6rem;
|
||||||
|
padding: 0.2rem 0.95rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
width: auto;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 42em) {
|
@media (max-width: 42em) {
|
||||||
.contact-name {
|
.contact-name {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
|||||||
Reference in new issue
Block a user