From bcbd413e571d772a4438f57138169ad1a6a3b5a8 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 31 Mar 2021 18:17:28 -0400 Subject: Definition collapsing when overflowing (#1575) * Add double-down-chevron.svg * Add options * Update dictionary importers * Update settings * Add support for collapsible definitions * Improve case when there is a very small amount of overflow * Fix incorrect enabled state of newly imported dictionaries --- ext/data/schemas/options-schema.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext/data/schemas') diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index 89e2d361..d829b392 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -732,7 +732,8 @@ "required": [ "priority", "enabled", - "allowSecondarySearches" + "allowSecondarySearches", + "definitionsCollapsible" ], "properties": { "priority": { @@ -746,6 +747,11 @@ "allowSecondarySearches": { "type": "boolean", "default": false + }, + "definitionsCollapsible": { + "type": "string", + "enum": ["not-collapsible", "expanded", "collapsed"], + "default": "not-collapsible" } } } -- cgit v1.2.3