diff --git a/lang/en.json b/lang/en.json index 23b198dc0d6c03354ce57573d560e26784f18be2..7c3eb05f170818088e0ef9c3ab91a13cd2e7d301 100644 --- a/lang/en.json +++ b/lang/en.json @@ -445,6 +445,7 @@ "WeeklyReports": "Weekly reports", "WellDone": "Well done!", "Widgets": "Widgets", + "Widget": "Widget", "XComparedToY": "%1$s compared to %2$s", "XFromY": "%1$s from %2$s", "YearlyReport": "yearly", diff --git a/plugins/Dashboard/stylesheets/dashboard.less b/plugins/Dashboard/stylesheets/dashboard.less index 6363b7c194b673d7dba540ec31a8ff62b2c7d962..558c89fb8bf488cff49acee6c822e12f446d2986 100644 --- a/plugins/Dashboard/stylesheets/dashboard.less +++ b/plugins/Dashboard/stylesheets/dashboard.less @@ -128,12 +128,19 @@ h3.widgetName { text-shadow: none; } +.widgetNameOffScreen { + overflow: hidden; + width:1px; + height:1px; +} + // Overriding some dataTable css for better dashboard display .widget .dataTableWrapper { width: 100% !important; } .widgetTop .button { + line-height: 0px; cursor: pointer; float: right; margin: 6px 6px 0 0; diff --git a/plugins/Dashboard/templates/_widgetFactoryTemplate.twig b/plugins/Dashboard/templates/_widgetFactoryTemplate.twig index 73078e79cc00d3928a43acb25c0d6955cd6a66d3..0d5b0d61547846efa380546dce883594cdc5dfc5 100644 --- a/plugins/Dashboard/templates/_widgetFactoryTemplate.twig +++ b/plugins/Dashboard/templates/_widgetFactoryTemplate.twig @@ -13,11 +13,14 @@ <div class="button" id="refresh"> <img src="plugins/Morpheus/images/refresh.png" title="{{ 'General_Refresh'|translate }}" /> </div> - <h3 class="widgetName">{% if widgetName is defined %}{{ widgetName }}{% endif %}</h3> + <h3 class="widgetName">{% if widgetName is defined %}{{ widgetName }}{% endif %} + <div class="widgetNameOffScreen"> + {{ 'General_Widget'|translate }} + </div> + </h3> </div> <div class="widgetContent"> <div class="widgetLoading">{{ 'Dashboard_LoadingWidget'|translate }}</div> </div> </div> </div> -