|
| 1 | +import { Tooltip } from "./ui"; |
1 | 2 | import { PropertyPanel } from "./editor/PropertyPanel"; |
2 | 3 | import { MotionPanel } from "./editor/MotionPanel"; |
3 | 4 | import { LayersPanel } from "./editor/LayersPanel"; |
@@ -106,54 +107,62 @@ export function StudioRightPanel({ |
106 | 107 | <div className="flex items-center gap-1 border-b border-neutral-800 px-3 py-2"> |
107 | 108 | {STUDIO_INSPECTOR_PANELS_ENABLED && ( |
108 | 109 | <> |
109 | | - <button |
110 | | - type="button" |
111 | | - onClick={() => setRightPanelTab("design")} |
112 | | - className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
113 | | - rightPanelTab === "design" |
114 | | - ? "bg-neutral-800 text-white" |
115 | | - : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
116 | | - }`} |
117 | | - > |
118 | | - Design |
119 | | - </button> |
120 | | - <button |
121 | | - type="button" |
122 | | - onClick={() => setRightPanelTab("layers")} |
123 | | - className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
124 | | - rightPanelTab === "layers" |
125 | | - ? "bg-neutral-800 text-white" |
126 | | - : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
127 | | - }`} |
128 | | - > |
129 | | - Layers |
130 | | - </button> |
131 | | - {STUDIO_MOTION_PANEL_ENABLED && ( |
| 110 | + <Tooltip label="Element styles and properties" side="bottom"> |
| 111 | + <button |
| 112 | + type="button" |
| 113 | + onClick={() => setRightPanelTab("design")} |
| 114 | + className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
| 115 | + rightPanelTab === "design" |
| 116 | + ? "bg-neutral-800 text-white" |
| 117 | + : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
| 118 | + }`} |
| 119 | + > |
| 120 | + Design |
| 121 | + </button> |
| 122 | + </Tooltip> |
| 123 | + <Tooltip label="Composition layer stack" side="bottom"> |
132 | 124 | <button |
133 | 125 | type="button" |
134 | | - onClick={() => setRightPanelTab("motion")} |
| 126 | + onClick={() => setRightPanelTab("layers")} |
135 | 127 | className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
136 | | - rightPanelTab === "motion" |
| 128 | + rightPanelTab === "layers" |
137 | 129 | ? "bg-neutral-800 text-white" |
138 | 130 | : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
139 | 131 | }`} |
140 | 132 | > |
141 | | - Motion |
| 133 | + Layers |
142 | 134 | </button> |
| 135 | + </Tooltip> |
| 136 | + {STUDIO_MOTION_PANEL_ENABLED && ( |
| 137 | + <Tooltip label="Animation and motion" side="bottom"> |
| 138 | + <button |
| 139 | + type="button" |
| 140 | + onClick={() => setRightPanelTab("motion")} |
| 141 | + className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
| 142 | + rightPanelTab === "motion" |
| 143 | + ? "bg-neutral-800 text-white" |
| 144 | + : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
| 145 | + }`} |
| 146 | + > |
| 147 | + Motion |
| 148 | + </button> |
| 149 | + </Tooltip> |
143 | 150 | )} |
144 | 151 | </> |
145 | 152 | )} |
146 | | - <button |
147 | | - type="button" |
148 | | - onClick={() => setRightPanelTab("renders")} |
149 | | - className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
150 | | - rightPanelTab === "renders" |
151 | | - ? "bg-neutral-800 text-white" |
152 | | - : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
153 | | - }`} |
154 | | - > |
155 | | - {renderJobs.length > 0 ? `Renders (${renderJobs.length})` : "Renders"} |
156 | | - </button> |
| 153 | + <Tooltip label="Render queue and exports" side="bottom"> |
| 154 | + <button |
| 155 | + type="button" |
| 156 | + onClick={() => setRightPanelTab("renders")} |
| 157 | + className={`h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${ |
| 158 | + rightPanelTab === "renders" |
| 159 | + ? "bg-neutral-800 text-white" |
| 160 | + : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200" |
| 161 | + }`} |
| 162 | + > |
| 163 | + {renderJobs.length > 0 ? `Renders (${renderJobs.length})` : "Renders"} |
| 164 | + </button> |
| 165 | + </Tooltip> |
157 | 166 | </div> |
158 | 167 | <div className="min-h-0 flex-1"> |
159 | 168 | {rightPanelTab === "block-params" && activeBlockParams ? ( |
|
0 commit comments