Abstract spotlight to allow non-room results too (#7804)

This commit is contained in:
Michael Telatynski 2022-02-15 13:36:32 +00:00 committed by GitHub
parent 201e552b0c
commit 0a084601c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 147 additions and 32 deletions

View file

@ -146,6 +146,7 @@ limitations under the License.
text-overflow: ellipsis;
overflow: hidden;
.mx_SpotlightDialog_metaspaceResult,
.mx_DecoratedRoomAvatar {
margin-right: 8px;
width: 20px;
@ -249,6 +250,29 @@ limitations under the License.
margin: 0 4px 0 auto;
display: none;
}
.mx_SpotlightDialog_metaspaceResult {
background-color: $secondary-content;
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
&.mx_SpotlightDialog_metaspaceResult_home-space {
mask-image: url('$(res)/img/element-icons/home.svg');
}
&.mx_SpotlightDialog_metaspaceResult_favourites-space {
mask-image: url('$(res)/img/element-icons/roomlist/favorite.svg');
}
&.mx_SpotlightDialog_metaspaceResult_people-space {
mask-image: url('$(res)/img/element-icons/room/members.svg');
}
&.mx_SpotlightDialog_metaspaceResult_orphans-space {
mask-image: url('$(res)/img/element-icons/roomlist/hash-circle.svg');
}
}
}
.mx_SpotlightDialog_footer {