Skip to content

Commit 38703f2

Browse files
committed
add or update props for customTooltip
1 parent dfb2429 commit 38703f2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

apps/remix-ide/src/app/tabs/locales/en/filePanel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@
136136
"filePanel.movingFolderFailedMsg": "Unexpected error while moving folder: {src}",
137137
"filePanel.workspaceActions": "Workspace actions",
138138
"filePanel.saveCodeSample": "This code-sample workspace will not be persisted. Click here to save it."
139-
}
139+
}

libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
2020
props.file.isDirectory ? (
2121
<>
2222
<CustomTooltip
23-
placement="right-start"
23+
placement="bottom"
2424
delay={{show: 1000, hide: 0}}
25-
tooltipText={<FormattedMessage id="filePanel.edit" />}
26-
tooltipId={`filePanel.edit.${props.file.path}`}
25+
tooltipText={<FormattedMessage id="filePanel.createNewFolder" />}
26+
tooltipId={`filePanel.createNewFolder.${props.file.path}`}
2727
tooltipClasses="text-nowrap"
2828
>
2929
<span
@@ -35,10 +35,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
3535
></span>
3636
</CustomTooltip>
3737
<CustomTooltip
38-
placement="right-start"
38+
placement="bottom"
3939
delay={{show: 1000, hide: 0}}
40-
tooltipText={<FormattedMessage id="fileExplorer.edit" />}
41-
tooltipId={`fileExplorer.edit.${props.file.path}`}
40+
tooltipText={<FormattedMessage id="filePanel.createNewFile" />}
41+
tooltipId={`fileExplorer.createNewFile.${props.file.path}`}
4242
tooltipClasses="text-nowrap"
4343
>
4444
<span
@@ -53,10 +53,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
5353
) : null
5454
}
5555
<CustomTooltip
56-
placement="right-start"
56+
placement="bottom"
5757
delay={{show: 1000, hide: 0}}
58-
tooltipText={<FormattedMessage id="fileExplorer.edit" />}
59-
tooltipId={`fileExplorer.edit.${props.file.path}`}
58+
tooltipText={<FormattedMessage id="filePanel.rename" />}
59+
tooltipId={`filePanel.rename.${props.file.path}`}
6060
tooltipClasses="text-nowrap"
6161
>
6262
<span
@@ -68,10 +68,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
6868
></span>
6969
</CustomTooltip>
7070
<CustomTooltip
71-
placement="right-start"
71+
placement="bottom"
7272
delay={{show: 1000, hide: 0}}
73-
tooltipText={<FormattedMessage id="fileExplorer.edit" />}
74-
tooltipId={`fileExplorer.edit.${props.file.path}`}
73+
tooltipText={<FormattedMessage id="filePanel.deleteItem" />}
74+
tooltipId={`filePanel.deleteItem.${props.file.path}`}
7575
tooltipClasses="text-nowrap"
7676
>
7777
<span

0 commit comments

Comments
 (0)