Skip to content

Commit 3e6a9dd

Browse files
committed
Fix 1
1 parent 91c93bb commit 3e6a9dd

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

_includes/pdf-preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if include.pdf %}
22
<object
3-
data="{{ include.pdf | relative_url | uri_escape }}#page=1&view=FitH&toolbar=0&navpanes=0&scrollbar=0"
3+
data="{{ include.pdf | relative_url | uri_escape }}#page=1&view=FitH"
44
type="application/pdf"
55
aria-label="{{ include.title | default: 'PDF preview' | regex_strip }}"
66
>

_styles/citation.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ $wrap: 800px;
2424
// box-shadow: var(--shadow);
2525
}
2626

27-
.citation-image img {
28-
position: absolute;
29-
inset: 0;
30-
width: 100%;
31-
height: 100%;
32-
object-fit: contain;
27+
.citation-image {
28+
position: relative;
29+
width: $thumb-size;
30+
flex-shrink: 0;
31+
overflow: hidden; // add this
3332
}
3433

3534
.citation-image object {
3635
position: absolute;
3736
inset: 0;
38-
width: 100%;
37+
width: calc(100% + 20px); // push scrollbar outside clip boundary
3938
height: 100%;
4039
border: 0;
4140
pointer-events: none;

0 commit comments

Comments
 (0)