Skip to content

Commit

Permalink
Add tooltips for draggables
Browse files Browse the repository at this point in the history
  • Loading branch information
photown committed Dec 28, 2023
1 parent 44b594e commit f12ea6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@
}
#overlayContainer .options-delete {
cursor: pointer;
background: url("img/icon_delete.png");
width: 20px;
height: 20px;
padding: 0;
margin: 0;
border: 0;
}

#overlayContainer .drag-handle {
Expand Down
20 changes: 10 additions & 10 deletions src/View.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,21 @@ export class View {
<input type="text" class="text" value="" size="20" />
<div class="text-options focused">
<div class="img-container drag-handle">
<img src="img/icon_drag.png" draggable="false" />
<img src="img/icon_drag.png" draggable="false" title="Drag text" />
</div>
<div class="separator"></div>
<div class="img-container">
<img src="img/icon_font_size.png" />
<img src="img/icon_font_size.png" title="Change font size" />
</div>
<input type="number" class="fontSize" min="8" max="96" value="14">
<input type="number" class="fontSize" min="8" max="96" value="14" title="Change font size">
<div class="separator"></div>
<div class="img-container">
<img src="img/icon_text_color.png" />
<img src="img/icon_text_color.png" title="Change text color" />
</div>
<input type="color" class="fontColor">
<input type="color" class="fontColor" title="Change text color">
<div class="separator"></div>
<div class="img-container">
<button class="options-delete" style="background: url('img/icon_delete.png'); width: 20px; height: 20px; padding: 0; margin: 0; border: 0" />
<button class="options-delete" title="Delete this text" />
</div>
</div>
</div>
Expand Down Expand Up @@ -262,16 +262,16 @@ export class View {
<img class="image-wrapper" />
<div class="text-options focused">
<div class="img-container drag-handle">
<img src="img/icon_drag.png" draggable="false" />
<img src="img/icon_drag.png" draggable="false" title="Drag image" />
</div>
<div class="separator"></div>
<div class="img-container">
<img src="img/icon_scale_image.png" />
<img src="img/icon_scale_image.png" title="Change image scale" />
</div>
<input type="number" class="scale" min="1" value="100">
<input type="number" class="scale" min="1" value="100" title="Change image scale">
<div class="separator"></div>
<div class="img-container">
<button class="options-delete" style="background: url('img/icon_delete.png'); width: 20px; height: 20px; padding: 0; margin: 0; border: 0" />
<button class="options-delete" title="Delete this image" />
</div>
</div>
</div>
Expand Down

0 comments on commit f12ea6f

Please sign in to comment.