diff --git a/ext/css/display.css b/ext/css/display.css index 91a306bcee..c44c3f26be 100644 --- a/ext/css/display.css +++ b/ext/css/display.css @@ -832,6 +832,7 @@ button.action-button:active { .entry { padding: var(--entry-vertical-padding) var(--entry-horizontal-padding); position: relative; + content-visibility: auto; contain-intrinsic-height: auto 500px; } .entry+.entry { diff --git a/ext/css/structured-content.css b/ext/css/structured-content.css index 020c7362e3..b4101a9e96 100644 --- a/ext/css/structured-content.css +++ b/ext/css/structured-content.css @@ -175,7 +175,8 @@ z-index: 1; } .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsed=true] .gloss-image-container, -:root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container { +:root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container, +:root[data-glossary-layout-mode=compact] .definition-item:nth-last-of-type(1) .gloss-image-link[data-collapsible=true] .gloss-image-container { bottom: 100%; top: auto; } diff --git a/ext/data/structured-content-style.json b/ext/data/structured-content-style.json index f3bfcf5a60..74f46764ea 100644 --- a/ext/data/structured-content-style.json +++ b/ext/data/structured-content-style.json @@ -252,7 +252,8 @@ { "selectors": [ ".entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsed=true] .gloss-image-container", - ":root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container" + ":root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .gloss-image-link[data-collapsible=true] .gloss-image-container", + ":root[data-glossary-layout-mode=compact] .definition-item:nth-last-of-type(1) .gloss-image-link[data-collapsible=true] .gloss-image-container" ], "styles": [ ["bottom", "100%"],