diff --git a/app/manifest.json b/app/manifest.json index ef1a23b..90c6d04 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_appName__", "short_name": "__MSG_appShortName__", - "version": "2.0.1", + "version": "2.0.2", "manifest_version": 2, "description": "__MSG_appDescription__", "icons": { diff --git a/app/sc_ext/modules/databaseName/DatabaseNameModule.ts b/app/sc_ext/modules/databaseName/DatabaseNameModule.ts index 9e7fae6..f9ff417 100644 --- a/app/sc_ext/modules/databaseName/DatabaseNameModule.ts +++ b/app/sc_ext/modules/databaseName/DatabaseNameModule.ts @@ -9,7 +9,9 @@ namespace SitecoreExtensions.Modules.DatabaseName { adDbNameToHeader(dbName: string): void { var dbnameDiv = HTMLHelpers.createElement('div', { class: 'sc-ext-dbName' }); dbnameDiv.innerText = dbName; - document.querySelector('.sc-globalHeader-loginInfo').parentNode.appendChild(dbnameDiv); + + let destination = document.querySelector('.sc-globalHeader'); + destination.insertBefore(dbnameDiv, destination.firstChild); } canExecute(): boolean { diff --git a/app/sc_ext/styles/databaseName.scss b/app/sc_ext/styles/databaseName.scss index 1a0ea23..2a8ed31 100644 --- a/app/sc_ext/styles/databaseName.scss +++ b/app/sc_ext/styles/databaseName.scss @@ -3,32 +3,7 @@ $break-small: 550px; $break-tiny: 390px; .sc-ext-dbName { - float: left; - margin-left: -10%; -} - -@media only screen and (max-width: $break-medium) { - .sc-ext-dbName { - margin-left: -30px; - } - .col-md-6 .sc-ext-dbName { - padding-left: 40%; - margin-left: 0px; - } -} - -@media only screen and (max-width: $break-small) { - .sc-ext-dbName { - margin-left: -50%; - } - .col-md-6 .sc-ext-dbName { - padding-left: 25%; - margin-left: 0px; - } -} - -@media only screen and (max-width: $break-tiny) { - .sc-ext-dbName { - display: none; - } + position: fixed; + width: 100%; + text-align: center; } \ No newline at end of file