From 1bd70950b6dfd92752a02c96e18051d11141c0bc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 25 Jan 2021 18:44:33 -0800 Subject: html: constrain thumbnail size better Fixes some safari and mobile UI bugs. --- fatcat_scholar/static/scholar.css | 3 ++- fatcat_scholar/templates/search_macros.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') 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 @@ {% else %}
- +
{% endif %} -- cgit v1.2.3