diff --git a/gallery/__init__.py b/gallery/__init__.py index 17174dd..15f14a9 100644 --- a/gallery/__init__.py +++ b/gallery/__init__.py @@ -21,7 +21,6 @@ from yaml import safe_load USER_DIR = platformdirs.user_config_dir('onlylegs') -Bundle.cache = False def create_app(test_config=None): @@ -38,9 +37,9 @@ def create_app(test_config=None): print("Loaded environment variables") # Get config file - with open(os.path.join(USER_DIR, 'conf.yml'), encoding='utf-8') as file: + with open(os.path.join(USER_DIR, 'conf.yml'), encoding='utf-8', mode='r') as file: conf = safe_load(file) - print("Loaded gallery config") + print("Loaded config") # App configuration app.config.from_mapping( @@ -58,6 +57,7 @@ def create_app(test_config=None): app.config.from_mapping(test_config) # Load JS assets + # TODO: disable caching for sass files as it makes it hard to work on when it is enabled assets.register('js_pre', Bundle('js/pre/*.js', output='gen/pre_packed.js')) assets.register('js_post', Bundle('js/post/*.js', output='gen/post_packed.js')) assets.register('styles', Bundle('sass/*.sass', filters='libsass', output='gen/styles.css')) diff --git a/gallery/static/sass/components/elements/upload-panel.sass b/gallery/static/sass/components/elements/upload-panel.sass index d92ad51..05e9824 100644 --- a/gallery/static/sass/components/elements/upload-panel.sass +++ b/gallery/static/sass/components/elements/upload-panel.sass @@ -9,6 +9,7 @@ height: 100vh background-color: transparent + color: RGB($fg-white) overflow: hidden z-index: 68 @@ -20,9 +21,6 @@ font-size: 1.5rem font-weight: 700 - - color: RGB($primary) - p margin: 0 padding: 0 @@ -30,8 +28,6 @@ font-size: 1rem font-weight: 500 - color: RGB($fg-white) - form margin: 0 padding: 0 diff --git a/gallery/templates/image.html b/gallery/templates/image.html index e07320f..7790967 100644 --- a/gallery/templates/image.html +++ b/gallery/templates/image.html @@ -91,12 +91,7 @@
- {{ image.post_alt }} + {{ image.post_alt }}
diff --git a/gallery/templates/layout.html b/gallery/templates/layout.html index b6bf41c..181e281 100644 --- a/gallery/templates/layout.html +++ b/gallery/templates/layout.html @@ -136,7 +136,7 @@ - +
diff --git a/gallery/utils/generate_image.py b/gallery/utils/generate_image.py index 6b5a517..788b0ca 100644 --- a/gallery/utils/generate_image.py +++ b/gallery/utils/generate_image.py @@ -37,7 +37,7 @@ def generate_thumbnail(file_name, resolution, ext=None): if resolution in ['prev', 'preview']: res_x, res_y = (1920, 1080) elif resolution in ['thumb', 'thumbnail']: - res_x, res_y = (400, 400) + res_x, res_y = (350, 350) elif resolution in ['icon', 'favicon']: res_x, res_y = (10, 10) elif len(resolution.split('x')) == 2: