diff --git a/CHANGELOG.md b/CHANGELOG.md index a6e0bcd3c..fb29c7c12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## v0.32.2 (2024-05-10) + + * Enhancements + * Allow the modal to close when we click outside the modal content + + * Bug fixes + * Fix indentation of -spec/-type in Erlang + * Fix Mix task autolink for tasks with underscores + * Avoid conflicts between custom headers with tooltips/modals + +## v0.32.1 (2024-04-12) + + * Bug fixes + * Add version dropdown back on hexdocs.pm + * Improve search input styling and scrolling + ## v0.32.0 (2024-04-10) * Enhancements diff --git a/assets/css/autocomplete.css b/assets/css/autocomplete.css index 690456107..9a86f445b 100644 --- a/assets/css/autocomplete.css +++ b/assets/css/autocomplete.css @@ -107,6 +107,7 @@ max-height: 450px; white-space: normal; overflow-x: hidden; + overscroll-behavior-y: contain; } .autocomplete-suggestions.previewing:has(.selected) { @@ -245,4 +246,4 @@ .autocomplete-results .press-return { display: none; } -} \ No newline at end of file +} diff --git a/assets/css/print-cheatsheet.css b/assets/css/print-cheatsheet.css index 0bbeda73f..38b2d17ce 100644 --- a/assets/css/print-cheatsheet.css +++ b/assets/css/print-cheatsheet.css @@ -130,7 +130,7 @@ } /* Remove hover tooltip from inline code references */ - .page-cheatmd .content-inner div#tooltip { + .page-cheatmd .content-inner div.tooltip { display: none; } diff --git a/assets/css/search-bar.css b/assets/css/search-bar.css index ebae94acf..9e957caed 100644 --- a/assets/css/search-bar.css +++ b/assets/css/search-bar.css @@ -41,7 +41,7 @@ .top-search .search-bar .search-input:focus { border: 1px solid var(--searchBarFocusColor); - border-radius: 8px; + border-radius: 7px; position: relative; box-shadow: 0px 4px 20px 0px var(--searchBarBorderColor) inset; } diff --git a/assets/css/tooltips.css b/assets/css/tooltips.css index 2820e0662..c61952f22 100644 --- a/assets/css/tooltips.css +++ b/assets/css/tooltips.css @@ -1,4 +1,4 @@ -#tooltip { +.tooltip { box-shadow: 0 0 10px var(--black-opacity-10); max-height: 300px; max-width: 500px; @@ -21,28 +21,28 @@ Show-up animation Note: it's fine to hide the tooltip with `visibility: hidden` (rather than `display: none`) as it has absolute positioning, so doesn't impact the layout and click events pass through. */ -#tooltip.tooltip-shown { +.tooltip.tooltip-shown { visibility: visible; transform: translateY(0); opacity: 1; } -#tooltip .tooltip-body { +.tooltip .tooltip-body { border: 1px solid var(--codeBorder); } -#tooltip .tooltip-body .signature { +.tooltip .tooltip-body .signature { min-width: 320px; width: 100%; } -#tooltip .tooltip-body .detail-header { +.tooltip .tooltip-body .detail-header { border-left: 0; margin-bottom: 0; margin-top: 0; } -#tooltip .tooltip-body .docstring { +.tooltip .tooltip-body .docstring { background-color: var(--background); padding: 1.2em; margin: 0; @@ -50,12 +50,12 @@ as it has absolute positioning, so doesn't impact the layout and click events pa } /* Used for simple tooltips having only description. */ -#tooltip .tooltip-body .docstring-plain { +.tooltip .tooltip-body .docstring-plain { max-width: 498px; width: auto; } -#tooltip .tooltip-body .version-info { +.tooltip .tooltip-body .version-info { float: right; line-height: 1.6rem; font-family: var(--monoFontFamily); diff --git a/assets/js/autocomplete/autocomplete-list.js b/assets/js/autocomplete/autocomplete-list.js index 64f92f5f5..8d9f5cf05 100644 --- a/assets/js/autocomplete/autocomplete-list.js +++ b/assets/js/autocomplete/autocomplete-list.js @@ -147,7 +147,7 @@ export function togglePreview () { export function hidePreview () { state.previewOpen = false const suggestionList = qs(AUTOCOMPLETE_SUGGESTION_LIST_SELECTOR) - suggestionList.classList.remove('previewing') + if (suggestionList) { suggestionList.classList.remove('previewing') } removePreview() } diff --git a/assets/js/handlebars/templates/modal-layout.handlebars b/assets/js/handlebars/templates/modal-layout.handlebars index 4ecb2d40f..88d90aa24 100644 --- a/assets/js/handlebars/templates/modal-layout.handlebars +++ b/assets/js/handlebars/templates/modal-layout.handlebars @@ -1,4 +1,4 @@ -