aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 18:44:33 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 18:44:35 -0800
commit1bd70950b6dfd92752a02c96e18051d11141c0bc (patch)
tree6e10346606be8692cbadb84a6a2e133db35886cc
parente2c023915559b1230cf19a06734c6f5ed76148e3 (diff)
downloadfatcat-scholar-1bd70950b6dfd92752a02c96e18051d11141c0bc.tar.gz
fatcat-scholar-1bd70950b6dfd92752a02c96e18051d11141c0bc.zip
html: constrain thumbnail size better
Fixes some safari and mobile UI bugs.
-rw-r--r--fatcat_scholar/static/scholar.css3
-rw-r--r--fatcat_scholar/templates/search_macros.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/fatcat_scholar/static/scholar.css b/fatcat_scholar/static/scholar.css
index 34b0e75..9c01a60 100644
--- a/fatcat_scholar/static/scholar.css
+++ b/fatcat_scholar/static/scholar.css
@@ -77,7 +77,8 @@ nav.ui.menu {
display: none !important;
}
.ui.items>.item>.image:not(.ui) {
- width: auto
+ width: auto;
+ max-height: 300px!important;
};
}
@media only screen and (min-width: 768px) {
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 5552dc3..dc47203 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -247,7 +247,7 @@
</div>
{% else %}
<div class="ui serp card" style="box-shadow: none;">
- <img src="/static/document-icon.svg" style="opacity: 0.6;" alt="">
+ <img src="/static/document-icon.svg" style="opacity: 0.6; width: 180px; height: 232px;" alt="">
</div>
{% endif %}
</a>