Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit f97eb8d

Browse files
Gondragosmakseq
andauthored
fix: DEV-1561: Tooltips for zoom inside audio annotations (#453)
* fix: DEV-1561: Add missed tooltips on zoom controls in audio annotation * Update Waveform.js Co-authored-by: Max Tkachenko <[email protected]>
1 parent 9dfc73a commit f97eb8d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/components/Waveform/Waveform.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Col, Row, Select, Slider } from "antd";
1111
import { SoundOutlined } from "@ant-design/icons";
1212
import messages from "../../utils/messages";
1313
import { Hotkey } from "../../core/Hotkey";
14+
import { Tooltip } from "../../common/Tooltip/Tooltip";
1415

1516
const MIN_ZOOM_Y = 1;
1617
const MAX_ZOOM_Y = 50;
@@ -452,7 +453,9 @@ export default class Waveform extends React.Component {
452453
<Col flex={8} style={{ textAlign: "right", marginTop: "6px" }}>
453454
<div style={{ display: "flex" }}>
454455
<div style={{ marginTop: "6px", marginRight: "5px" }}>
455-
<ZoomOutOutlined onClick={this.onZoomMinus} className={globalStyles.link} />
456+
<Tooltip placement="topLeft" title="Horizontal zoom out">
457+
<ZoomOutOutlined onClick={this.onZoomMinus} className={globalStyles.link} />
458+
</Tooltip>
456459
</div>
457460
<div style={{ width: "100%" }}>
458461
<Slider
@@ -466,14 +469,18 @@ export default class Waveform extends React.Component {
466469
/>
467470
</div>
468471
<div style={{ marginTop: "6px", marginLeft: "5px" }}>
469-
<ZoomInOutlined onClick={this.onZoomPlus} className={globalStyles.link} />
472+
<Tooltip placement="topLeft" title="Horizontal zoom in">
473+
<ZoomInOutlined onClick={this.onZoomPlus} className={globalStyles.link} />
474+
</Tooltip>
470475
</div>
471476
</div>
472477
</Col>
473478
<Col flex={4} style={{ textAlign: "right", marginTop: "6px" }}>
474479
<div style={{ display: "flex" }}>
475480
<div style={{ marginTop: "6px", marginRight: "5px" }}>
476-
<ZoomOutOutlined onClick={this.onZoomYMinus} className={globalStyles.link} />
481+
<Tooltip placement="topLeft" title="Vertical zoom out">
482+
<ZoomOutOutlined onClick={this.onZoomYMinus} className={globalStyles.link} />
483+
</Tooltip>
477484
</div>
478485
<div style={{ width: "100%" }}>
479486
<Slider
@@ -487,7 +494,9 @@ export default class Waveform extends React.Component {
487494
/>
488495
</div>
489496
<div style={{ marginTop: "6px", marginLeft: "5px" }}>
490-
<ZoomInOutlined onClick={this.onZoomYPlus} className={globalStyles.link} />
497+
<Tooltip placement="topLeft" title="Vertical zoom in">
498+
<ZoomInOutlined onClick={this.onZoomYPlus} className={globalStyles.link} />
499+
</Tooltip>
491500
</div>
492501
</div>
493502
</Col>

0 commit comments

Comments
 (0)