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.
pull/9/head
Ben Busby 4 years ago
parent 38c0f56322
commit 3bc58b64be

@ -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):

Loading…
Cancel
Save