Skip to content

Commit cfe7e0e

Browse files
committed
feat: add tooltip in hot corner button
1 parent 138313c commit cfe7e0e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3664,7 +3664,9 @@ function RemoteFunctions(config = {}) {
36643664

36653665
const content = `
36663666
<div class="phoenix-hot-corner">
3667-
<button class="hot-corner-btn">${icons.playButton}</button>
3667+
<button class="hot-corner-btn" title="${strings.togglePreviewMode}">
3668+
${icons.playButton}
3669+
</button>
36683670
</div>`;
36693671

36703672
shadow.innerHTML = `<style>${cssStyles.hotCorner}</style>${content}`;

src/extensionsIntegrated/phoenix-pro/remote-constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ define(function (require, exports, module) {
3737
imageGallerySelectFromComputerTooltip: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER_TOOLTIP,
3838
imageGalleryDialogOverlayMessage: Strings.LIVE_DEV_IMAGE_GALLERY_DIALOG_OVERLAY_MESSAGE,
3939
toastNotEditable: Strings.LIVE_DEV_TOAST_NOT_EDITABLE,
40-
toastCopyFirstTime: Strings.LIVE_DEV_COPY_TOAST_MESSAGE
40+
toastCopyFirstTime: Strings.LIVE_DEV_COPY_TOAST_MESSAGE,
41+
togglePreviewMode: Strings.LIVE_PREVIEW_MODE_TOGGLE_PREVIEW
4142
};
4243

4344
LiveDevProtocol.addRemoteFunctionConstantsScript("strings",

0 commit comments

Comments
 (0)