Hide inline encryption icons except when hovering over a message

Closes https://github.com/vector-im/riot-web/issues/2882

This is a redo of https://github.com/matrix-org/matrix-react-sdk/pull/1707 (see associated discussion there and here: https://github.com/vector-im/riot-web/pull/5988)

I tried several times to resolve the conflicts correctly, but could not. Thus, fresh PR.
This commit is contained in:
Eric Newport 2018-04-22 22:30:37 -04:00
parent 44d92bb32e
commit d42fa9d17a
5 changed files with 22 additions and 1 deletions

View file

@ -298,6 +298,16 @@ limitations under the License.
cursor: pointer;
}
.mx_EventTile_e2eIcon[hidden] {
display: none;
}
/* always override hidden attribute for blocked and warning */
.mx_EventTile_e2eIcon[hidden][src="img/e2e-blocked.svg"],
.mx_EventTile_e2eIcon[hidden][src="img/e2e-warning.svg"] {
display: block;
}
.mx_EventTile_keyRequestInfo {
font-size: 12px;
}