From 5bb1a3b450631b4e1cf1260c413af2654923f4b5 Mon Sep 17 00:00:00 2001 From: "Levi Siuzdak (sile)" Date: Mon, 18 Sep 2023 15:41:01 +0200 Subject: [PATCH] [FIX] portal: add ellipses to search box placeholder overflow Versions: --------- - 15.0+ Issue: ------ Depending on the font, string & window size, the `oe_search_box` placeholder may get cropped awkwardly. Cause: ------ The search field can't guarantee adequate width to show the full placeholder string. Solution: --------- Add `text-overflow: ellipsis` CSS rule for `oe_search_box` elements to make it clear the placeholder was cropped. Related: -------- - odoo/enterprise@b69c7da11a6d454d24af8006f4b78486a653a717 - odoo/enterprise@5e47eaf30f6365cababe1a29d95caa4e2b72a57f opw-3504281 closes odoo/odoo#141070 X-original-commit: 18cbb2913537bab0748f0a4e7ed466f259c8fa77 Signed-off-by: Romain Derie (rde) --- addons/portal/static/src/scss/portal.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 708240e120e..a88a54dd44b 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -156,6 +156,7 @@ img, .media_iframe_video, .o_image { } .oe_search_box { padding-right: 23px; + text-overflow: ellipsis; } // Kept for (up to) saas-12 compatibility