Small update to filter class

The image results page seems to have different formatting from non-image
results pages. Should probably revisit this at some point and try to
style the image results page to be more in line with other result types.
main
Ben Busby 2020-04-25 11:32:43 -06:00
parent 38c0f56322
commit 3bc58b64be
1 changed files with 3 additions and 1 deletions

View File

@ -52,9 +52,11 @@ class Filter:
logo['style'] = 'display:flex; justify-content:center; align-items:center; color:#685e79; font-size:18px;'
# Fix search bar length on mobile
if self.mobile:
try:
search_bar = soup.find('header').find('form').find('div')
search_bar['style'] = 'width: 100%;'
except AttributeError:
pass
# Replace hrefs with only the intended destination (no "utm" type tags)
for a in soup.find_all('a', href=True):