We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc14277 commit 92dd606Copy full SHA for 92dd606
public/i18n/en.yaml
@@ -226,6 +226,7 @@ command-palette:
226
remove-ns-context: Remove Namespace context
227
common:
228
ariaLabel:
229
+ code-preview: Code Preview
230
editor: editor
231
new-tab-link: This link will be opened in a new tab.
232
buttons:
src/shared/components/MonacoEditorESM/hooks/useCreateEditor.js
@@ -61,6 +61,16 @@ export const useCreateEditor = ({
61
...options,
62
});
63
64
+ if (divRef.current) {
65
+ const minimapElement = divRef.current.querySelector('.minimap');
66
+ if (minimapElement) {
67
+ minimapElement.setAttribute(
68
+ 'title',
69
+ t('common.ariaLabel.code-preview'),
70
+ );
71
+ }
72
73
+
74
setEditorInstance(instance);
75
76
return () => {
0 commit comments