@skyhook-io/k8s-ui 1.5.12 → 1.5.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.
package/package.json
CHANGED
|
@@ -105,11 +105,11 @@ export function BottomDock({ renderTabContent, renderTabHeaderExtra, leftOffset:
|
|
|
105
105
|
return null
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
const effectiveHeight = !isExpanded ? 36 : isMaximized ? `calc(
|
|
108
|
+
const effectiveHeight = !isExpanded ? 36 : isMaximized ? `calc(100vh - ${MAXIMIZED_TOP_OFFSET}px)` : height
|
|
109
109
|
|
|
110
110
|
return (
|
|
111
111
|
<div
|
|
112
|
-
className="
|
|
112
|
+
className="fixed bottom-0 right-0 bg-theme-base border-t border-theme-border flex flex-col z-40 overflow-hidden"
|
|
113
113
|
style={{ height: effectiveHeight, left: leftOffset, transition: `height ${DURATION_DOCK}ms cubic-bezier(0.4, 0, 0.2, 1), left ${DURATION_DOCK}ms ease-out` }}
|
|
114
114
|
>
|
|
115
115
|
{isExpanded && !isMaximized && (
|
|
@@ -115,7 +115,7 @@ export function ResourceDetailDrawer({ resource, onClose, onNavigate, initialTab
|
|
|
115
115
|
return (
|
|
116
116
|
<div
|
|
117
117
|
className={clsx(
|
|
118
|
-
'
|
|
118
|
+
'fixed right-0 bg-theme-surface border-l border-theme-border flex flex-col shadow-drawer z-40',
|
|
119
119
|
TRANSITION_DRAWER,
|
|
120
120
|
isOpen
|
|
121
121
|
? 'translate-x-0 opacity-100'
|
|
@@ -123,9 +123,9 @@ export function ResourceDetailDrawer({ resource, onClose, onNavigate, initialTab
|
|
|
123
123
|
expanded && '!border-l-0',
|
|
124
124
|
)}
|
|
125
125
|
style={{
|
|
126
|
-
width: expanded ? `calc(
|
|
126
|
+
width: expanded ? `calc(100vw - ${leftOffset}px)` : drawerWidth,
|
|
127
127
|
top: headerHeight,
|
|
128
|
-
height: `calc(
|
|
128
|
+
height: `calc(100vh - ${headerHeight}px)`,
|
|
129
129
|
// Collapse is instant — no animation, content and width snap together.
|
|
130
130
|
// Expand + slide-in/out animate via TRANSITION_DRAWER class.
|
|
131
131
|
...(isCollapsing && { transition: 'none' }),
|
package/src/types/core.ts
CHANGED
|
@@ -20,10 +20,6 @@ export interface ResourcePermissions {
|
|
|
20
20
|
hpas: boolean
|
|
21
21
|
gateways: boolean
|
|
22
22
|
httpRoutes: boolean
|
|
23
|
-
roles: boolean
|
|
24
|
-
clusterRoles: boolean
|
|
25
|
-
roleBindings: boolean
|
|
26
|
-
clusterRoleBindings: boolean
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
// Feature capabilities based on RBAC permissions
|