@raketa-cloud/admin 1.8.12 → 1.8.13

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.
@@ -1701,6 +1701,10 @@ select {
1701
1701
  margin-bottom: 1.5rem;
1702
1702
  }
1703
1703
 
1704
+ .ml-10 {
1705
+ margin-left: 2.5rem;
1706
+ }
1707
+
1704
1708
  .ml-2 {
1705
1709
  margin-left: 0.5rem;
1706
1710
  }
@@ -1932,6 +1936,10 @@ select {
1932
1936
  align-items: center;
1933
1937
  }
1934
1938
 
1939
+ .justify-start {
1940
+ justify-content: flex-start;
1941
+ }
1942
+
1935
1943
  .justify-end {
1936
1944
  justify-content: flex-end;
1937
1945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "1.8.12",
3
+ "version": "1.8.13",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "src/",
@@ -66,7 +66,7 @@ const sanitizePath = (filePath) =>
66
66
  path.normalize(path.join("/", ...filePath.split("/")));
67
67
 
68
68
  function getPartialPath(partialPath, views, viewsFallback) {
69
- // First resolve the partial path relative to the views directory
69
+ // Resolve the partial path relative to the views directory
70
70
  // This normalizes "../_nav.ejs" relative to "page_revisions/codes"
71
71
  // Result: "page_revisions/_nav.ejs"
72
72
  const resolvedPartialPath = sanitizePath(`${views}/${partialPath}`);
@@ -76,16 +76,10 @@ function getPartialPath(partialPath, views, viewsFallback) {
76
76
  sanitizePath(`${currentPath}/views/${resolvedPartialPath}`),
77
77
  ];
78
78
 
79
- // For fallback, replace the resource name with the fallback path
79
+ // For fallback, resolve the partial path relative to viewsFallback
80
+ // This naturally handles ".." navigation: "resource_revisions/codes/../_nav.ejs" → "resource_revisions/_nav.ejs"
80
81
  if (viewsFallback) {
81
- // Extract base resource (e.g., "page_revisions" from "page_revisions/codes")
82
- const resourceBase = views.split("/")[0];
83
- // Replace resource base with fallback base
84
- // "page_revisions/_nav.ejs" → "resource_revisions/_nav.ejs" ✓
85
- const fallbackPath = resolvedPartialPath.replace(
86
- resourceBase,
87
- viewsFallback,
88
- );
82
+ const fallbackPath = sanitizePath(`${viewsFallback}/${partialPath}`);
89
83
  paths.push(sanitizePath(`${currentPath}/views/${fallbackPath}`));
90
84
  }
91
85