Skip to content

Commit e1b396f

Browse files
zubeydecivelekzzacharo
authored andcommitted
fix: chapters height for small screens
1 parent 3f08b9b commit e1b396f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • cds/modules

cds/modules/records/static/templates/cds_records/video/detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h3 class="bt bw-1 pt-10 mb-0">
9292
<div ng-class="{'is-placeholder': !frame}" class="thumbnail-container">
9393
<img
9494
ng-if="frame"
95-
ng-src="/api/iiif/v2/{{ frame.bucket_id }}:{{ frame.version_id }}:{{ frame.key }}/full/80,45/0/default.jpg"
95+
ng-src="/api/iiif/v2/{{ frame.bucket_id }}:{{ frame.version_id }}:{{ frame.key }}/full/320,180/0/default.jpg"
9696
alt="Chapter {{ chapter.timestamp }}"
9797
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
9898
<div class="thumbnail-placeholder" ng-style="{'display': frame ? 'none' : 'flex'}">
@@ -328,7 +328,7 @@ <h3><strong>Chapters</strong></h3>
328328
<!-- Chapter Thumbnail -->
329329
<div class="chapter-thumbnail-main-horizontal" style="width: 189px; height: 106px; border-radius: 6px; overflow: hidden; background-color: #f5f5f5; margin-bottom: 8px; position: relative;">
330330
<img ng-if="getChapterFrame(chapter)"
331-
ng-src="/api/iiif/v2/{{ getChapterFrame(chapter).bucket_id }}:{{ getChapterFrame(chapter).version_id }}:{{ getChapterFrame(chapter).key }}/full/189,106/0/default.jpg"
331+
ng-src="/api/iiif/v2/{{ getChapterFrame(chapter).bucket_id }}:{{ getChapterFrame(chapter).version_id }}:{{ getChapterFrame(chapter).key }}/full/320,180/0/default.jpg"
332332
style="width: 100%; height: 100%; object-fit: cover;"
333333
alt="Chapter {{ chapter.timestamp }}"
334334
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">

cds/modules/theme/assets/bootstrap3/scss/cds/cds.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,9 +1400,9 @@ div[cds-search-results] {
14001400
}
14011401
}
14021402

1403-
@media(max-width: 768px) {
1403+
@media(max-width: 992px) {
14041404
.in-this-video-panel {
1405-
max-height: calc(100vh - 120px);
1405+
min-height: 400px;
14061406
}
14071407
}
14081408

0 commit comments

Comments
 (0)