diff --git a/components/query.py b/components/query.py index d4e4813..8f0ab19 100644 --- a/components/query.py +++ b/components/query.py @@ -4,6 +4,7 @@ # Helper functions for Dashboard PRINT_STYLE = {"color": "MidnightBlue"} +IMG_STYLE = {"max-width": "400px"} def get_data(df, mapping, features): ''' @@ -124,7 +125,7 @@ def get_images(df, subspecies, view, sex, hybrid, num_images): image_path = filepaths[i] + filenames[i] else: image_path = filepaths[i] + '/' + filenames[i] - Imgs.append(html.Img(src = image_path)) + Imgs.append(html.Img(src = image_path, style = IMG_STYLE)) return Imgs def get_filenames(df, subspecies, view, sex, hybrid, num_images):