summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bg/data/options-schema.json2
-rw-r--r--ext/bg/js/options.js2
-rw-r--r--test/test-options-util.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 151a7fe3..5d23df02 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -283,7 +283,7 @@
"popupActionBarLocation": {
"type": "string",
"enum": ["left", "right", "top", "bottom"],
- "default": "right"
+ "default": "top"
}
}
},
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 6c335346..86f76698 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -686,6 +686,7 @@ class OptionsUtil {
// Moved anki.sentenceExt to sentenceParsing.scanExtent.
// Added sentenceParsing.enableTerminationCharacters.
// Added sentenceParsing.terminationCharacters.
+ // Changed general.popupActionBarLocation.
for (const profile of options.profiles) {
profile.options.translation.textReplacements = {
searchOriginal: true,
@@ -710,6 +711,7 @@ class OptionsUtil {
]
};
delete profile.options.anki.sentenceExt;
+ profile.options.general.popupActionBarLocation = 'top';
}
return options;
}
diff --git a/test/test-options-util.js b/test/test-options-util.js
index 5ce9313e..c4a6addd 100644
--- a/test/test-options-util.js
+++ b/test/test-options-util.js
@@ -296,7 +296,7 @@ function createProfileOptionsUpdatedTestData1() {
maximumClipboardSearchLength: 1000,
popupCurrentIndicatorMode: 'triangle',
popupActionBarVisibility: 'auto',
- popupActionBarLocation: 'right'
+ popupActionBarLocation: 'top'
},
audio: {
enabled: true,