From fced35de157ef9fa8b64507352a81a57997a97cd Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Tue, 30 Nov 2021 14:58:42 +0300 Subject: [PATCH] UX: Add title attribute to reports cells (#15137) Some reports, like the Web Crawler User Agents report, have very long strings that need to be truncated when displayed. However, there is no way to see the full value without exporting the report or inspecting the elements using dev tools. This PR set a `title` attribute with the full value to the reports `` elements so that the full value is shown on hover. --- .../admin/addon/components/admin-report-table-cell.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/admin/addon/components/admin-report-table-cell.js b/app/assets/javascripts/admin/addon/components/admin-report-table-cell.js index aadf6e0f736..7ef4f7d9c1d 100644 --- a/app/assets/javascripts/admin/addon/components/admin-report-table-cell.js +++ b/app/assets/javascripts/admin/addon/components/admin-report-table-cell.js @@ -6,6 +6,7 @@ export default Component.extend({ tagName: "td", classNames: ["admin-report-table-cell"], classNameBindings: ["type", "property"], + attributeBindings: ["value:title"], options: null, @discourseComputed("label", "data", "options")