diff --git a/common/test/acceptance/pages/lms/dashboard.py b/common/test/acceptance/pages/lms/dashboard.py index 9aaeee09e8..278b9a3519 100644 --- a/common/test/acceptance/pages/lms/dashboard.py +++ b/common/test/acceptance/pages/lms/dashboard.py @@ -64,7 +64,7 @@ class DashboardPage(PageObject): @property def username(self): """Return the displayed value for the user's username""" - return self.q(css='h1.user-name').text[0] + return self.q(css='.user-name').text[0] def get_enrollment_mode(self, course_name): """Get the enrollment mode for a given course on the dashboard. diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss index 4815a80e21..3f2d1b974f 100644 --- a/lms/static/sass/multicourse/_dashboard.scss +++ b/lms/static/sass/multicourse/_dashboard.scss @@ -20,15 +20,18 @@ width: flex-grid(12); background: $dashboard-profile-color; - h1.user-name { + .user-name { + display: block; overflow: hidden; margin: 0; - padding: ($baseline*0.75) ($baseline/2); + padding: ($baseline*0.75) ($baseline/2) 0; color: $base-font-color; text-transform: none; text-wrap: nowrap; text-overflow: ellipsis; - font: 700 1.2em/1.2em $sans-serif; + text-align: center; + font-weight: 700; + line-height: 1.2em; } } diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 4ef8ce89f9..d4468ed865 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -77,7 +77,7 @@
-

${ user.username }

+

${_("Username")}: ${ user.username }