From f3cf4d10c711037c99c185dd0b46dac9f5d69794 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 18 May 2021 17:41:27 -0400 Subject: Dictionary image display refactoring (#1687) * Generalize image definition generation * Enable optional aspect ratio * Move styles * Update styles * Add more options for collapsing images * Add image options for collapsing * Improve layout for images that are collapsed --- ext/data/schemas/dictionary-term-bank-v3-schema.json | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ext/data') diff --git a/ext/data/schemas/dictionary-term-bank-v3-schema.json b/ext/data/schemas/dictionary-term-bank-v3-schema.json index 4790e561..2289dfd6 100644 --- a/ext/data/schemas/dictionary-term-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-term-bank-v3-schema.json @@ -104,6 +104,16 @@ "type": "boolean", "description": "Whether or not the image should appear pixelated at sizes larger than the image's native resolution.", "default": false + }, + "collapsed": { + "type": "boolean", + "description": "Whether or not the image is collapsed by default.", + "default": false + }, + "collapsible": { + "type": "boolean", + "description": "Whether or not the image can be collapsed.", + "default": true } } } -- cgit v1.2.3