Skip to content

Commit f9dbbbd

Browse files
committed
Fixed media queries.
1 parent 83aaf8b commit f9dbbbd

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/css/main.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,9 @@ progress::-webkit-progress-value {
346346

347347
#song-title,
348348
#song-artist {
349-
float: left;
350-
overflow: hidden;
351-
text-overflow: ellipsis;
352-
white-space: nowrap;
353-
max-width: 50%;
349+
overflow: hidden;
350+
white-space: nowrap;
351+
text-overflow: ellipsis;
354352
}
355353

356354

@@ -402,11 +400,15 @@ input[type='range']::-webkit-slider-thumb {
402400
* and song title
403401
*/
404402
@media (max-width: 1000px) {
405-
#song-title {
406-
max-width: 25%;
403+
#song-title,
404+
#song-artist {
405+
max-width: 10em;
407406
}
407+
}
408408

409+
@media (min-width: 1000px) {
410+
#song-title,
409411
#song-artist {
410-
max-width: 20%;
412+
max-width: 28em;
411413
}
412414
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta
55
name="viewport"
6-
content="width=device-width, initial-scale=1, shrink-to-fit=no"
6+
content="width=device-width, initial-scale=1"
77
/>
88
<meta
99
http-equiv="Content-Security-Policy"

0 commit comments

Comments
 (0)