Commit dcf6479
Decrease mobile mock window height in editor section (#1986)
* Decrease mobile mock window height in editor section
Co-Authored-By: [email protected] <[email protected]>
* Mimic Notion-style typing animation for markdown
Introduce staged placeholder and transformation states to make the typing
animation mimic how tools like Notion render headings and lists. Added
showPlaceholder and transforming state flags, expanded lines to include
placeholder text, and adjusted the typing logic to briefly display a
placeholder (e.g., "Heading 1" or "List") after typing the trigger
sequence ("# " or "- ") before animating into the transformed
rendered element. Also updated rendering to show a pulsing cursor during
placeholder and to animate transformed headings with motion.
* Keep cursor placeholder in-place during typing
Prevent the cursor from jumping to the end by rendering the typing cursor inline with the typing text and placeholder. The change moves the pulse cursor character into the same span as typingText and places the placeholder in a following inline span so the cursor stays at the current typing position instead of jumping to the end.
* Reduce space between cursor and placeholder
Adjust the spacing between the blinking cursor and the placeholder text to make the caret appear closer to the placeholder. The change replaces the margin-left utility from ml-2 to ml-0.5 to tighten the gap and improve visual alignment of the cursor and placeholder in the AI note-taking component.
* Show placeholder and blinking cursor for headings and bullets
Make the placeholder text and blinking cursor visible immediately after typing a marker (e.g. "# " or "- ") and render them in the correct visual style for headings and bullets. This change replaces generic placeholders like "Heading 1"/"List" with "Enter header"/"Enter list item", ensures the cursor blinks before the placeholder, and uses larger heading font sizes and proper list markup so the placeholder matches the final rendered element.
* Avoid re-animating list item placeholder
Prevent transformed list items and other placeholder-rendered lines from re-sliding by removing motion wrappers for heading (and adding comments for bullet and bold states). This stops the slide-in animation when the placeholder is shown so the UI doesn't animate the item again after transformation; the diff removes the motion.h1 wrapper and adds clarifying comments for bullet and bold transformed states.
* Don't animate when placeholders disappear
Remove placeholder-related animation state and transitional opacity so placeholders vanish instantly instead of animating. The change eliminates the "transforming" state and related class toggles, and ensures showPlaceholder is reset immediately when placeholders are dismissed. This prevents unwanted fade/opacity animations when placeholders go away and simplifies the placeholder/typing flow.
* feat(product): add default typing state comment
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 330d811 commit dcf6479
1 file changed
+94
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
389 | 406 | | |
390 | 407 | | |
391 | 408 | | |
| 409 | + | |
392 | 410 | | |
393 | 411 | | |
394 | 412 | | |
| |||
399 | 417 | | |
400 | 418 | | |
401 | 419 | | |
| 420 | + | |
402 | 421 | | |
403 | 422 | | |
404 | 423 | | |
| |||
413 | 432 | | |
414 | 433 | | |
415 | 434 | | |
416 | | - | |
| 435 | + | |
| 436 | + | |
417 | 437 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
422 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
423 | 457 | | |
424 | | - | |
425 | | - | |
426 | 458 | | |
427 | 459 | | |
428 | 460 | | |
| |||
432 | 464 | | |
433 | 465 | | |
434 | 466 | | |
| 467 | + | |
435 | 468 | | |
436 | 469 | | |
437 | 470 | | |
| |||
509 | 542 | | |
510 | 543 | | |
511 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
512 | 591 | | |
513 | 592 | | |
514 | 593 | | |
| |||
524 | 603 | | |
525 | 604 | | |
526 | 605 | | |
| 606 | + | |
527 | 607 | | |
528 | 608 | | |
529 | 609 | | |
| |||
541 | 621 | | |
542 | 622 | | |
543 | 623 | | |
| 624 | + | |
544 | 625 | | |
545 | 626 | | |
546 | 627 | | |
| |||
565 | 646 | | |
566 | 647 | | |
567 | 648 | | |
| 649 | + | |
568 | 650 | | |
569 | 651 | | |
570 | 652 | | |
| |||
0 commit comments