From 60e92d6c1eca8961c1d4848fcc838fe6074affa1 Mon Sep 17 00:00:00 2001 From: Nicolae Iosif Date: Tue, 30 Jul 2024 10:24:18 +0300 Subject: [PATCH] fix: fix some ui bugs with a huge number of sidebar links --- settings.py | 4 ++++ static/admin_portal/css/custom.css | 3 +++ templates/.gitkeep | 0 3 files changed, 7 insertions(+) create mode 100644 static/admin_portal/css/custom.css create mode 100644 templates/.gitkeep diff --git a/settings.py b/settings.py index 5017570..1cdb0b2 100644 --- a/settings.py +++ b/settings.py @@ -7,6 +7,9 @@ def extend_superapp_settings(main_settings): main_settings['STATICFILES_DIRS'] += [ main_settings['BASE_DIR'] / "superapp" / "apps" / "admin_portal" / "static", ] + main_settings['TEMPLATES'][0]['DIRS'] += [ + main_settings['BASE_DIR'] / "superapp" / "apps" / "admin_portal" / "templates", + ] main_settings['INSTALLED_APPS'] = [ 'admin_confirm', 'unfold', @@ -63,6 +66,7 @@ def extend_superapp_settings(main_settings): }, "STYLES": [ lambda request: static("admin_portal/css/styles.css"), + lambda request: static("admin_portal/css/custom.css"), ], "SCRIPTS": [ lambda request: static("admin_portal/js/apex.min.js"), diff --git a/static/admin_portal/css/custom.css b/static/admin_portal/css/custom.css new file mode 100644 index 0000000..c60358f --- /dev/null +++ b/static/admin_portal/css/custom.css @@ -0,0 +1,3 @@ +#nav-sidebar .simplebar-placeholder { + height: fit-content !important; +} diff --git a/templates/.gitkeep b/templates/.gitkeep new file mode 100644 index 0000000..e69de29