Skip to content

Commit

Permalink
fix: fix some ui bugs with a huge number of sidebar links
Browse files Browse the repository at this point in the history
  • Loading branch information
iosifnicolae2 committed Jul 30, 2024
1 parent 0cad0c1 commit 60e92d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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"),
Expand Down
3 changes: 3 additions & 0 deletions static/admin_portal/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#nav-sidebar .simplebar-placeholder {
height: fit-content !important;
}
Empty file added templates/.gitkeep
Empty file.

0 comments on commit 60e92d6

Please sign in to comment.