aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-04-25 08:38:46 -0400
committerGitHub <noreply@github.com>2024-04-25 12:38:46 +0000
commit0c29b10a711f2ff9978ec9898867eb0aae88298d (patch)
treea05a2510c34e62b15865e4dde1418b75d42c444b /ext
parentf0196aaf6beac57e17972c87153376bbbcdd7282 (diff)
Add option to disable furigana and reading in Term display style (#862)
* Add option to disable furigana and reading in `Term display style` * Also hide search reading
Diffstat (limited to 'ext')
-rw-r--r--ext/css/display.css6
-rw-r--r--ext/data/schemas/options-schema.json2
-rw-r--r--ext/settings.html1
3 files changed, 7 insertions, 2 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>