* start hide * Move useSettingsValueWithSetter to useSettings * Add new setting showMediaEventIds * Add a migration path * Add an action button to hide settings. * Tweaks to MImageBody to support new setting. * Fixup and add tests * add description for migration * docs fixes * add type * i18n * appese prettier * Add tests for HideActionButton * lint * lint * First pass at support for previewing/hiding images. * Add a test for video files. * First pass at supporting hiding video files. * Use a hook for media visibility. * Drop setting hook usage. * Fixup MImageBody test * Fixup tests * Support functional components for message body rendering. * Add a comment * Move props into IProps * Use new wrapping logic * lint * fixup * allow for a delay for the image to render * remove .only * lint * Fix jest test * Fixup tests. * make tests happy * Improve comments * review fixes * unbreak test
30 lines
591 B
Plaintext
30 lines
591 B
Plaintext
.mx_HiddenMediaPlaceholder {
|
|
border: none;
|
|
width: 100%;
|
|
height: 100%;
|
|
inset: 0;
|
|
|
|
/* To center the text in the middle of the frame */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
background-color: $header-panel-bg-color;
|
|
|
|
> div {
|
|
color: $accent;
|
|
/* Icon alignment */
|
|
display: flex;
|
|
> svg {
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_EventTile:hover .mx_HiddenMediaPlaceholder {
|
|
background-color: $background;
|
|
}
|