We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 703eede commit d2af22aCopy full SHA for d2af22a
1 file changed
src/components/LiteEditor/index.tsx
@@ -159,6 +159,7 @@ const LiteEditorToolbar = ({
159
}) => {
160
const appTheme = useTheme()
161
const Icon = diffEditor ? SquareSplitHorizontalIcon : CornersOutIcon
162
+ const label = diffEditor ? "Diff preview" : "Open in editor"
163
return (
164
<ButtonsContainer>
165
<OpenInEditorButton
@@ -169,10 +170,10 @@ const LiteEditorToolbar = ({
169
170
})
171
onOpenInEditor()
172
}}
- title="Open in editor"
173
+ title={label}
174
data-hook="ai-open-in-editor-button"
175
>
- {!compact && "Open in editor"}
176
+ {!compact && label}
177
<Icon size="1.8rem" color={appTheme.color.offWhite} />
178
</OpenInEditorButton>
179
{!compact && (
0 commit comments