micro-sidebar 1.2.0__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/PKG-INFO +2 -1
  2. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/README.md +2 -1
  3. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/micro_sidebar.egg-info/PKG-INFO +2 -1
  4. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/pyproject.toml +1 -1
  5. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/setup.py +1 -1
  6. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/static/sidebar/sidebar.css +12 -6
  7. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/static/sidebar/sidebar.js +0 -5
  8. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/LICENSE +0 -0
  9. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/MANIFEST.in +0 -0
  10. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/micro_sidebar.egg-info/SOURCES.txt +0 -0
  11. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/micro_sidebar.egg-info/dependency_links.txt +0 -0
  12. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/micro_sidebar.egg-info/requires.txt +0 -0
  13. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/micro_sidebar.egg-info/top_level.txt +0 -0
  14. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/setup.cfg +0 -0
  15. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/__init__.py +0 -0
  16. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/apps.py +0 -0
  17. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/migrations/__init__.py +0 -0
  18. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/templates/sidebar/main.html +0 -0
  19. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/urls.py +0 -0
  20. {micro_sidebar-1.2.0 → micro_sidebar-1.2.1}/sidebar/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micro_sidebar
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A Reusable RTL Django Sidebar App
5
5
  Home-page: https://github.com/debeski/micro-sidebar
6
6
  Author: DeBeski
@@ -113,3 +113,4 @@ While it may theoretically work in LTR environments if standard Bootstrap files
113
113
  | **v1.0.2** | Improved documentation clarity and added usage instructions. |
114
114
  | **v1.1.0** | Renamed `content.html` to `main.html` for clarity. Refactored to use `{% block items %}` for easier extension. |
115
115
  | **v1.2.0** | **New Theme Implementation:** Redesigned UI with rounded pill-shaped items, tactile micro-animations, and a refined color palette. Improved responsiveness with dynamic top-offset calculations and inline FOUC fixes for small screens. Fixed tooltip stickiness bug. |
116
+ | **v1.2.1** | **Positioning Fix:** Added `align-self: flex-start` to resolve 60px vertical offset in flex containers. Removed legacy `sidebar-top-offset` CSS variable and JS calculations. Added `box-shadow: none` and `outline: none` to accordion buttons to remove focus ring. Fixed page flickering on wider screens by constraining sidebar height with `calc(100vh - header-height)`. |
@@ -86,4 +86,5 @@ While it may theoretically work in LTR environments if standard Bootstrap files
86
86
  | **v1.0.1** | Fixed titlebar positioning bug causing overlap/gaps. |
87
87
  | **v1.0.2** | Improved documentation clarity and added usage instructions. |
88
88
  | **v1.1.0** | Renamed `content.html` to `main.html` for clarity. Refactored to use `{% block items %}` for easier extension. |
89
- | **v1.2.0** | **New Theme Implementation:** Redesigned UI with rounded pill-shaped items, tactile micro-animations, and a refined color palette. Improved responsiveness with dynamic top-offset calculations and inline FOUC fixes for small screens. Fixed tooltip stickiness bug. |
89
+ | **v1.2.0** | **New Theme Implementation:** Redesigned UI with rounded pill-shaped items, tactile micro-animations, and a refined color palette. Improved responsiveness with dynamic top-offset calculations and inline FOUC fixes for small screens. Fixed tooltip stickiness bug. |
90
+ | **v1.2.1** | **Positioning Fix:** Added `align-self: flex-start` to resolve 60px vertical offset in flex containers. Removed legacy `sidebar-top-offset` CSS variable and JS calculations. Added `box-shadow: none` and `outline: none` to accordion buttons to remove focus ring. Fixed page flickering on wider screens by constraining sidebar height with `calc(100vh - header-height)`. |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micro-sidebar
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A Reusable RTL Django Sidebar App
5
5
  Home-page: https://github.com/debeski/micro-sidebar
6
6
  Author: DeBeski
@@ -113,3 +113,4 @@ While it may theoretically work in LTR environments if standard Bootstrap files
113
113
  | **v1.0.2** | Improved documentation clarity and added usage instructions. |
114
114
  | **v1.1.0** | Renamed `content.html` to `main.html` for clarity. Refactored to use `{% block items %}` for easier extension. |
115
115
  | **v1.2.0** | **New Theme Implementation:** Redesigned UI with rounded pill-shaped items, tactile micro-animations, and a refined color palette. Improved responsiveness with dynamic top-offset calculations and inline FOUC fixes for small screens. Fixed tooltip stickiness bug. |
116
+ | **v1.2.1** | **Positioning Fix:** Added `align-self: flex-start` to resolve 60px vertical offset in flex containers. Removed legacy `sidebar-top-offset` CSS variable and JS calculations. Added `box-shadow: none` and `outline: none` to accordion buttons to remove focus ring. Fixed page flickering on wider screens by constraining sidebar height with `calc(100vh - header-height)`. |
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "micro_sidebar"
10
- version = "1.2.0"
10
+ version = "1.2.1"
11
11
  description = "A Reusable RTL Django Sidebar App"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="micro_sidebar",
5
- version="1.2.0",
5
+ version="1.2.1",
6
6
  author="DeBeski",
7
7
  author_email="debeski1@gmail.com",
8
8
  description="A Reusable RTL Django Sidebar App",
@@ -3,11 +3,11 @@
3
3
  transition: width 0.2s ease-in-out;
4
4
  background: linear-gradient(180deg, #ffffff 10%, #f1f7fd 100%);
5
5
  position: sticky;
6
- /* Use the JS-provided offset, fallback to 0 if standalone */
7
- top: var(--sidebar-top-offset, 0px);
6
+ top: var(--header-height, 60px);
7
+ align-self: flex-start; /* Force to top of flex container */
8
8
  overflow-y: auto;
9
9
  overflow-x: hidden;
10
- height: calc(100vh - var(--sidebar-top-offset, 0px));
10
+ height: calc(100vh - var(--header-height, 60px));
11
11
  border-left: 1px solid #f1f3f5;
12
12
  scrollbar-width: thin;
13
13
  scrollbar-color: rgba(0,0,0,0.1) transparent;
@@ -64,12 +64,11 @@
64
64
 
65
65
  .sidebar {
66
66
  position: fixed;
67
- /* Use dynamic offset even in fixed mode for consistency */
68
- top: var(--sidebar-top-offset, 0px);
67
+ top: var(--header-height, 60px);
69
68
  right: 0;
70
69
  width: 250px;
71
70
  transition: width 0.15s ease-in-out;
72
- height: calc(100vh - var(--sidebar-top-offset, 0px));
71
+ height: calc(100vh - var(--header-height, 60px));
73
72
  z-index: 1000;
74
73
  --sidebar-item-px: 6px;
75
74
  }
@@ -145,6 +144,13 @@
145
144
  white-space: nowrap;
146
145
  overflow: hidden;
147
146
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
147
+ box-shadow: none !important;
148
+ outline: none !important;
149
+ }
150
+
151
+ .sidebar .accordion-button:focus {
152
+ box-shadow: none !important;
153
+ outline: none !important;
148
154
  }
149
155
 
150
156
  .sidebar .accordion-button:not(.collapsed) {
@@ -21,11 +21,6 @@ document.addEventListener("DOMContentLoaded", function () {
21
21
  // Function to handle sidebar collapsing based on window size
22
22
  function adjustSidebarForWindowSize() {
23
23
  const screenWidth = window.innerWidth;
24
- const titlebar = document.querySelector('.titlebar');
25
- const titlebarHeight = (titlebar && window.getComputedStyle(titlebar).display !== 'none') ? titlebar.offsetHeight : 0;
26
-
27
- // Set dynamic CSS variable for the sidebar
28
- sidebar.style.setProperty('--sidebar-top-offset', titlebarHeight + 'px');
29
24
 
30
25
  if (screenWidth < 1100) {
31
26
  // Always collapse sidebar on small screens
File without changes
File without changes
File without changes