aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/css/display.css6
-rw-r--r--ext/data/schemas/options-schema.json2
-rw-r--r--ext/settings.html1
-rw-r--r--types/ext/settings.d.ts2
4 files changed, 8 insertions, 3 deletions
diff --git a/ext/css/display.css b/ext/css/display.css
index a148af13..90f6a1e6 100644
--- a/ext/css/display.css
+++ b/ext/css/display.css
@@ -947,7 +947,11 @@ button.action-button:active {
:root[data-term-display-mode=term-and-reading] .headword[data-reading-is-same=true] .headword-reading-outer {
display: none;
}
-:root[data-term-display-mode=term-and-reading] .headword-term>ruby>rt {
+:root[data-term-display-mode=term-and-reading] .headword-term>ruby>rt,
+:root[data-term-display-mode=term-only] .headword-term>ruby>rt {
+ display: none;
+}
+:root[data-term-display-mode=term-only] .query-parser-term>ruby>rt {
display: none;
}
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json
index b3f68881..0cb6db0a 100644
--- a/ext/data/schemas/options-schema.json
+++ b/ext/data/schemas/options-schema.json
@@ -290,7 +290,7 @@
},
"termDisplayMode": {
"type": "string",
- "enum": ["ruby", "ruby-and-reading", "term-and-reading"],
+ "enum": ["ruby", "ruby-and-reading", "term-and-reading", "term-only"],
"default": "ruby"
},
"sortFrequencyDictionary": {
diff --git a/ext/settings.html b/ext/settings.html
index 3c94b95e..68113d21 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -851,6 +851,7 @@
<option value="ruby">Term furigana</option>
<option value="ruby-and-reading">Term furigana and reading</option>
<option value="term-and-reading">Plain term and reading</option>
+ <option value="term-only">Plain term</option>
</select>
</div>
</div></div>
diff --git a/types/ext/settings.d.ts b/types/ext/settings.d.ts
index 4e3b185a..1fce0f59 100644
--- a/types/ext/settings.d.ts
+++ b/types/ext/settings.d.ts
@@ -373,7 +373,7 @@ export type PopupActionBarLocation = 'left' | 'right' | 'top' | 'bottom';
export type FrequencyDisplayMode = 'tags' | 'tags-grouped' | 'split-tags' | 'split-tags-grouped' | 'inline-list' | 'list';
-export type TermDisplayMode = 'ruby' | 'ruby-and-reading' | 'term-and-reading';
+export type TermDisplayMode = 'ruby' | 'ruby-and-reading' | 'term-and-reading' | 'term-only';
export type SortFrequencyDictionaryOrder = 'ascending' | 'descending';