From b8846895de055683f072048f3ab00524784e6bbd Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 19 Apr 2023 22:58:31 +0000 Subject: [PATCH] Remove auto database migration Make info tab cooler Change Image groups icon to a box again :3 --- onlylegs/__init__.py | 8 +++--- .../sass/components/image-view/info-tab.sass | 26 +++++++++---------- onlylegs/templates/image.html | 2 +- onlylegs/templates/layout.html | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/onlylegs/__init__.py b/onlylegs/__init__.py index a0853e2..85d40ee 100644 --- a/onlylegs/__init__.py +++ b/onlylegs/__init__.py @@ -69,10 +69,10 @@ def create_app(): # pylint: disable=R0914 migrate_init(directory=MIGRATIONS_DIR) # Check if migrations are up to date - with app.app_context(): - print("Checking for schema changes...") - migrate_migrate(directory=MIGRATIONS_DIR) - migrate_upgrade(directory=MIGRATIONS_DIR) + # with app.app_context(): + # print("Checking for schema changes...") + # migrate_migrate(directory=MIGRATIONS_DIR) + # migrate_upgrade(directory=MIGRATIONS_DIR) # LOGIN MANAGER # can also set session_protection to "strong" diff --git a/onlylegs/static/sass/components/image-view/info-tab.sass b/onlylegs/static/sass/components/image-view/info-tab.sass index ab599e2..c9db202 100644 --- a/onlylegs/static/sass/components/image-view/info-tab.sass +++ b/onlylegs/static/sass/components/image-view/info-tab.sass @@ -1,4 +1,6 @@ .info-container + padding: 0.5rem 0 0.5rem 0.5rem + width: 27rem height: 100vh @@ -8,13 +10,17 @@ display: flex flex-direction: column - gap: 0 + gap: 0.5rem - background-color: RGB($bg-200) + background-image: linear-gradient(90deg, $bg-transparent, transparent) overflow-y: auto z-index: +4 transition: left 0.3s cubic-bezier(0.76, 0, 0.17, 1) + -ms-overflow-style: none + scrollbar-width: none + &::-webkit-scrollbar + display: none &.collapsed left: -27rem @@ -39,8 +45,7 @@ transform: rotate(90deg) .info-table - height: 0 - padding: 0 + display: none .collapse-indicator margin: 0 @@ -74,11 +79,8 @@ align-items: center gap: 0.5rem - position: sticky - top: 0 - z-index: +1 - background-color: RGB($bg-200) + border-radius: $rad svg margin: 0 @@ -202,14 +204,12 @@ @media (max-width: 1100px) .info-container + padding: 0 + width: 100% height: 100% - position: relative - - display: flex - flex-direction: column - gap: 0.5rem + position: relative &.collapsed left: unset diff --git a/onlylegs/templates/image.html b/onlylegs/templates/image.html index 28b63a2..0a397d9 100644 --- a/onlylegs/templates/image.html +++ b/onlylegs/templates/image.html @@ -178,7 +178,7 @@
{% for group in image.groups %} - + {{ group['name'] }} {% endfor %} diff --git a/onlylegs/templates/layout.html b/onlylegs/templates/layout.html index 3fa5f7b..a47d14b 100644 --- a/onlylegs/templates/layout.html +++ b/onlylegs/templates/layout.html @@ -79,7 +79,7 @@ - + Groups