From aa5e13b441da693441a27113169c2bf87f676d06 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 30 May 2022 13:34:37 -0400 Subject: Collapsible dictionary updates (#2170) * Add "force collapsed" and "force expanded" options * Simplify "any" check * Update style * Add help modal for collapsible dictionaries * Disable wrapping --- ext/css/material.css | 4 ++++ ext/css/settings.css | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ext/css') diff --git a/ext/css/material.css b/ext/css/material.css index 4d319349..6621df96 100644 --- a/ext/css/material.css +++ b/ext/css/material.css @@ -807,6 +807,10 @@ input[type=number].code, input[type=password].code { font-family: 'Courier New', Courier, monospace; } +textarea.no-wrap { + white-space: pre; + overflow-wrap: normal; +} /* Input groups */ .input-group { diff --git a/ext/css/settings.css b/ext/css/settings.css index 62e979e0..dc8132be 100644 --- a/ext/css/settings.css +++ b/ext/css/settings.css @@ -1628,8 +1628,8 @@ code.anki-field-marker { resize: none; min-height: calc(var(--textarea-line-height) * 5 + var(--textarea-padding) * 2); } -#anki-card-templates-render-result, -#anki-card-templates-compile-result { + +.code { flex: 0 0 auto; width: 100%; max-width: 100%; -- cgit v1.2.3