Commit 87d934e
committed
feat: implement off-canvas editor sidebar with enhanced UX
- Transform fixed sidebar into off-canvas overlay design
- Sidebar slides in from right side with smooth animations
- Main editor now takes full width for better content focus
- Sidebar available in both normal and fullscreen modes
- Add intuitive sidebar controls and navigation
- Toggle button integrated into editor tabs (after Preview)
- Sticky header with close button for easy access
- Overlay backdrop and ESC key support for closing
- Consistent positioning across normal and fullscreen modes
- Implement keyboard shortcuts for improved workflow
- Ctrl/Cmd+Shift+S: Toggle sidebar visibility
- Ctrl/Cmd+S: Smart save with status-aware logic
- ESC: Close sidebar when open
- Enhance save functionality with intelligent behavior
- Auto-detects content state (new vs existing)
- Preserves published status for existing content
- Validates title and slug before saving
- Provides color-coded notifications for user feedback
- Prevents duplicate slug creation with warnings
- Improve scroll and focus management
- Body scroll locked when sidebar open
- Independent sidebar scrolling
- Auto-focus first input when sidebar opens
- Prevents background interaction on mobile
- Add responsive design optimizations
- Full-width sidebar on mobile devices
- Proper z-index stacking for fullscreen compatibility
- Touch-friendly button sizing and spacing
This update significantly improves the editing experience by keeping
users focused on content while providing easy access to all publishing
options without scrolling away from the editor.1 parent e789d37 commit 87d934e
7 files changed
Lines changed: 511 additions & 16 deletions
File tree
- core/admin
- static
- css
- js/editor
- modules
- views
- contents
- layouts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| 39 | + | |
34 | 40 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
146 | 172 | | |
147 | 173 | | |
148 | 174 | | |
| |||
277 | 303 | | |
278 | 304 | | |
279 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
280 | 365 | | |
281 | 366 | | |
282 | 367 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 368 | + | |
286 | 369 | | |
| 370 | + | |
287 | 371 | | |
288 | 372 | | |
289 | 373 | | |
290 | | - | |
291 | 374 | | |
292 | 375 | | |
293 | 376 | | |
294 | 377 | | |
295 | 378 | | |
296 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
297 | 385 | | |
298 | 386 | | |
299 | 387 | | |
| |||
307 | 395 | | |
308 | 396 | | |
309 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
310 | 405 | | |
311 | 406 | | |
312 | 407 | | |
313 | 408 | | |
314 | 409 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 410 | | |
320 | 411 | | |
321 | 412 | | |
| |||
340 | 431 | | |
341 | 432 | | |
342 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
343 | 444 | | |
344 | 445 | | |
345 | 446 | | |
| |||
432 | 533 | | |
433 | 534 | | |
434 | 535 | | |
| 536 | + | |
435 | 537 | | |
436 | 538 | | |
437 | 539 | | |
| |||
1081 | 1183 | | |
1082 | 1184 | | |
1083 | 1185 | | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
255 | 266 | | |
0 commit comments