diff --git a/src/editors/automerge/automergeEditor.css b/src/editors/automerge/automergeEditor.css index 2cc65a7..bc208bb 100644 --- a/src/editors/automerge/automergeEditor.css +++ b/src/editors/automerge/automergeEditor.css @@ -169,6 +169,13 @@ font-size: 14px; max-height: 16em; padding: 2px 0; + /* See the footer block below: `order` fixes the rendered position, and + `height: auto` + `min-height: 0` beat CM's `height: 100%` so the list + shrinks (and scrolls) rather than pushing the footer out. */ + order: 1; + flex: 1 1 auto; + height: auto; + min-height: 0; } /* (0,4,2) beats CM's (0,3,2). */ @@ -211,6 +218,58 @@ color: var(--semantic-primary-fg); } +/* + * The hint strip along the bottom of the popup. + * + * `order` is load-bearing, not cosmetic: CodeMirror rebuilds the option list on + * every update by appending a fresh `