File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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% + 20 px ); // push scrollbar outside clip boundary
3938 height : 100% ;
4039 border : 0 ;
4140 pointer-events : none ;
You can’t perform that action at this time.
0 commit comments