Fixed #239: broken track download modal (overflow and wrong URL)

This commit is contained in:
Eliot Berriot 2018-06-05 19:25:38 +02:00
parent a16bd2a409
commit 17d5fa6924
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1 @@
Fixed broken track download modal (overflow and wrong URL) (#239)

View File

@ -26,7 +26,11 @@ export default {
return url return url
} }
if (url.startsWith('/')) { if (url.startsWith('/')) {
return config.BACKEND_URL + url.substr(1) let rootUrl = (
window.location.protocol + '//' + window.location.hostname +
(window.location.port ? ':' + window.location.port : '')
)
return rootUrl + url
} else { } else {
return config.BACKEND_URL + url return config.BACKEND_URL + url
} }

View File

@ -84,4 +84,7 @@ export default {
tr:not(:hover) .favorite-icon:not(.favorited) { tr:not(:hover) .favorite-icon:not(.favorited) {
display: none; display: none;
} }
pre {
overflow-x: scroll;
}
</style> </style>