Merge pull request #4894 from matrix-org/travis/room-list/badge-fixes

Fix minor issues with the badges in the new room list
This commit is contained in:
Travis Ralston 2020-07-03 15:09:15 -06:00 committed by GitHub
commit d98ba9b577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -92,7 +92,7 @@ limitations under the License.
// Apply the width and margin to the badge so the container doesn't occupy dead space
.mx_NotificationBadge {
width: 16px;
// Do not set a width so the badges get properly sized
margin-left: 8px; // same as menu+aux buttons
}
}

View file

@ -85,6 +85,7 @@ limitations under the License.
height: 16px;
// don't set width so that it takes no space when there is no badge to show
margin: auto 0; // vertically align
position: relative; // fixes badge alignment in some scenarios
// Create a flexbox to make aligning dot badges easier
display: flex;