diff --git a/package.json b/package.json index 91af21fc..b2372827 100644 --- a/package.json +++ b/package.json @@ -66,5 +66,12 @@ "tailwindcss": "^3.3.5", "vinyl-fs": "~3.0", "zooming": "^2.1.1" + }, + "allowScripts": { + "es5-ext": false, + "fsevents": false, + "gifsicle@4.0.1": true, + "jpegtran-bin@4.0.0": true, + "optipng-bin@6.0.0": true } } diff --git a/src/css/site-search.css b/src/css/site-search.css index 01afe109..69b16ed3 100644 --- a/src/css/site-search.css +++ b/src/css/site-search.css @@ -132,7 +132,10 @@ border-top-width: 1.5px; } -/* Page rows carry a one-line text snippet; end it with an ellipsis instead of a hard cut. */ +/* End a title or snippet that's too long for its row with an ellipsis instead of a hard cut. + DocSearch sets text-overflow on the row, but the title and snippet are flex items, so it + doesn't reach them. */ +.DocSearch .DocSearch-Hit-title, .DocSearch .DocSearch-Hit-path { overflow: hidden; text-overflow: ellipsis;