You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Use a mask instead of an img for "Show image" eye
See https://github.com/matrix-org/matrix-react-sdk/pull/3492#pullrequestreview-296223646
This commit is contained in:
@@ -79,11 +79,17 @@ limitations under the License.
|
|||||||
.mx_HiddenImagePlaceholder_button {
|
.mx_HiddenImagePlaceholder_button {
|
||||||
color: $accent-color;
|
color: $accent-color;
|
||||||
|
|
||||||
img {
|
span.mx_HiddenImagePlaceholder_eye {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
|
||||||
|
background-color: $accent-color;
|
||||||
|
mask-image: url('$(res)/img/feather-customised/eye.svg');
|
||||||
|
display: inline-block;
|
||||||
|
width: 18px;
|
||||||
|
height: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span:not(.mx_HiddenImagePlaceholder_eye) {
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ export class HiddenImagePlaceholder extends React.PureComponent {
|
|||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
<div className='mx_HiddenImagePlaceholder_button'>
|
<div className='mx_HiddenImagePlaceholder_button'>
|
||||||
<img src={require("../../../../res/img/feather-customised/eye.svg")} width={17} height={12} />
|
<span className='mx_HiddenImagePlaceholder_eye' />
|
||||||
<span>{_t("Show image")}</span>
|
<span>{_t("Show image")}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user