From 94f4b21bdddbb50e5a399f53e0abba37c6a39af9 Mon Sep 17 00:00:00 2001 From: lfarrell Date: Tue, 28 Nov 2023 08:12:47 -0500 Subject: [PATCH] Allow autocomplete items to wrap. Otherwise, very long suggestions can bleed off the screen. --- app/assets/stylesheets/arclight/modules/layout.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/assets/stylesheets/arclight/modules/layout.scss b/app/assets/stylesheets/arclight/modules/layout.scss index 2afc2f511..fdffdcc67 100644 --- a/app/assets/stylesheets/arclight/modules/layout.scss +++ b/app/assets/stylesheets/arclight/modules/layout.scss @@ -209,3 +209,13 @@ dl.deflist dt { margin: $spacer 0; padding: $spacer 0; } + +// Original style comes from https://github.com/twbs/bootstrap/blob/v5.3.2/scss/_dropdown.scss#L184 +// via https://github.com/projectblacklight/blacklight/blob/v8.1.0/app/assets/stylesheets/blacklight/_search_form.scss#L25 +.input-group > .search-autocomplete-wrapper { + ul { + li { + white-space: normal; + } + } +} \ No newline at end of file