@allbluecn/web-app 0.24.7 → 0.24.8
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
|
@@ -98,7 +98,17 @@ export function DashboardSidebar() {
|
|
|
98
98
|
);
|
|
99
99
|
|
|
100
100
|
return (
|
|
101
|
-
|
|
101
|
+
// 折叠态自绘红绿灯:容器顶部让出 48px(= 红绿灯条高度),背景卡片整体落到
|
|
102
|
+
// 红绿灯下方、之间留 18px 间距(圆点在留白里居中 y=24);padding-top 纳入
|
|
103
|
+
// transition,展开/折叠时与宽度动画同步升降
|
|
104
|
+
<Sidebar
|
|
105
|
+
variant="floating"
|
|
106
|
+
collapsible="icon"
|
|
107
|
+
className={cn(
|
|
108
|
+
"transition-[left,right,width,padding-top]",
|
|
109
|
+
showCustomTrafficLights && "pt-12",
|
|
110
|
+
)}
|
|
111
|
+
>
|
|
102
112
|
<SidebarHeader
|
|
103
113
|
className={cn(
|
|
104
114
|
"flex flex-col items-center justify-center gap-2 py-2",
|
|
@@ -106,9 +116,11 @@ export function DashboardSidebar() {
|
|
|
106
116
|
// 桌面展开态:整块 header 为拖动区(第二行 logo 左对齐),按钮逐个 no-drag;
|
|
107
117
|
// gap-2 拉开红绿灯行与 logo 行间距(用户调校 2026-10-31)
|
|
108
118
|
!isCollapsed && showTrafficLightRow && "app-region-drag w-full items-stretch justify-start gap-2 py-1",
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
isCollapsed && isDesktop && !isFullscreen && "app-region-drag
|
|
119
|
+
// 折叠态:卡片已在红绿灯下方(容器 pt-12),卡内只需常规上内边距;
|
|
120
|
+
// 旧壳无自绘能力时不抬高容器,保持 pt-8 给原生三键让位
|
|
121
|
+
isCollapsed && isDesktop && !isFullscreen && "app-region-drag",
|
|
122
|
+
isCollapsed && isDesktop && !isFullscreen &&
|
|
123
|
+
(showCustomTrafficLights ? "pt-4" : "pt-8"),
|
|
112
124
|
)}
|
|
113
125
|
>
|
|
114
126
|
{isCollapsed ? (
|
|
@@ -112,7 +112,7 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
112
112
|
"items": [
|
|
113
113
|
{
|
|
114
114
|
"name": "@allbluecn/web-app",
|
|
115
|
-
"version": "v0.24.
|
|
115
|
+
"version": "v0.24.8",
|
|
116
116
|
"lastUpdate": "Nov 3, 2026",
|
|
117
117
|
"source": "apps/web/package.json",
|
|
118
118
|
"docsUrl": "https://github.com/allbluecn/allblue"
|