Skip to content

Commit 8b3b4de

Browse files
Fix: Bottom episodes covered by player on mobile.
1 parent be0502e commit 8b3b4de

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

source/index.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<div style="flex: 2;">&nbsp;</div>
5050

5151
<div id="episodePlayer">
52-
<div id="playerContainer" style="margin: auto; max-width: 500px; height: 200px; overflow: hidden;">
52+
<div id="playerContainer">
5353
<iframe style="width: 100%; height: 200px;" frameborder="no" scrolling="no" allow="clipboard-write" seamless src="https://player.captivate.fm/episode/{{ loadedEpisodes[0].id }}"></iframe>
5454
</div>
5555
</div>

source/styles/homepage.scss

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ body {
6969
width: 600px;
7070

7171
#playerContainer {
72+
margin: auto;
73+
max-width: 500px;
74+
height: 200px;
75+
overflow: hidden;
76+
7277
background: WHITE;
7378
border-radius: 6px;
7479
}
@@ -265,8 +270,17 @@ body {
265270
z-index: 9999;
266271

267272
#playerContainer {
273+
margin: auto;
274+
max-width: 500px;
275+
height: 200px;
276+
overflow: hidden;
277+
268278
background: WHITE;
269279
border-radius: 0px;
280+
281+
iframe {
282+
height: 200px;
283+
}
270284
}
271285
}
272286

@@ -325,6 +339,9 @@ body {
325339
background: WHITE;
326340
padding: 8px;
327341

342+
// Make space for the bottom mounted player.
343+
padding-bottom: 224px;
344+
328345
.episode-list-item {
329346
position: relative;
330347
padding-top: 4px;
@@ -341,7 +358,7 @@ body {
341358
}
342359

343360
& > .content {
344-
padding: 8px;
361+
padding: 8px 12px;
345362
border-radius: 4px;
346363

347364
cursor: pointer;
@@ -350,15 +367,15 @@ body {
350367
margin-bottom: 0.2em;
351368

352369
color: BLACK;
353-
font-size: 13px;
370+
font-size: 16px;
354371
font-weight: bold;
355372
}
356373

357374
.date {
358375
margin-bottom: 0;
359376

360377
color: #A7A7A7;
361-
font-size: 10px;
378+
font-size: 14px;
362379
}
363380
}
364381

0 commit comments

Comments
 (0)