mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Add tooltips to rotate and close buttons in ImageView (#9686)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
201fef8b11
commit
bfd37d8089
1 changed files with 3 additions and 3 deletions
|
@ -195,13 +195,13 @@ export default class ImageView extends React.Component {
|
||||||
<img src={this.props.src} title={this.props.name} style={effectiveStyle} className="mainImage" />
|
<img src={this.props.src} title={this.props.name} style={effectiveStyle} className="mainImage" />
|
||||||
<div className="mx_ImageView_labelWrapper">
|
<div className="mx_ImageView_labelWrapper">
|
||||||
<div className="mx_ImageView_label">
|
<div className="mx_ImageView_label">
|
||||||
<AccessibleButton className="mx_ImageView_rotateCounterClockwise" onClick={ this.rotateCounterClockwise }>
|
<AccessibleButton className="mx_ImageView_rotateCounterClockwise" title="Rotate Left" onClick={ this.rotateCounterClockwise }>
|
||||||
<img src={require("../../../../res/img/rotate-ccw.svg")} alt={ _t('Rotate counter-clockwise') } width="18" height="18" />
|
<img src={require("../../../../res/img/rotate-ccw.svg")} alt={ _t('Rotate counter-clockwise') } width="18" height="18" />
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<AccessibleButton className="mx_ImageView_rotateClockwise" onClick={ this.rotateClockwise }>
|
<AccessibleButton className="mx_ImageView_rotateClockwise" title="Rotate Right" onClick={ this.rotateClockwise }>
|
||||||
<img src={require("../../../../res/img/rotate-cw.svg")} alt={ _t('Rotate clockwise') } width="18" height="18" />
|
<img src={require("../../../../res/img/rotate-cw.svg")} alt={ _t('Rotate clockwise') } width="18" height="18" />
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<AccessibleButton className="mx_ImageView_cancel" onClick={ this.props.onFinished }>
|
<AccessibleButton className="mx_ImageView_cancel" title="Close" onClick={ this.props.onFinished }>
|
||||||
<img src={require("../../../../res/img/cancel-white.svg")} width="18" height="18" alt={ _t('Close') } />
|
<img src={require("../../../../res/img/cancel-white.svg")} width="18" height="18" alt={ _t('Close') } />
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<div className="mx_ImageView_shim">
|
<div className="mx_ImageView_shim">
|
||||||
|
|
Loading…
Reference in a new issue