youssefreda9 commited on
Commit
8ebd4a6
·
1 Parent(s): be38538

fix: Restore pre-wrap for correct RTL cursor position - Revert white-space to pre-wrap (fixes cursor starting from center) - Override with white-space:normal only for blockquote, ul, ol, li - Lists and indent still render properly

Browse files
Files changed (1) hide show
  1. src/css/components.css +4 -2
src/css/components.css CHANGED
@@ -495,9 +495,8 @@
495
  letter-spacing: var(--letter-spacing-arabic);
496
  direction: rtl;
497
  text-align: right;
498
- white-space: normal;
499
  word-wrap: break-word;
500
- word-break: break-word;
501
  overflow-y: auto;
502
  border-radius: 0;
503
  margin: 0;
@@ -526,6 +525,7 @@
526
  padding-right: 2rem;
527
  border-right: 3px solid var(--color-primary);
528
  border-left: none;
 
529
  }
530
 
531
  /* List styling inside editor */
@@ -534,10 +534,12 @@
534
  margin: 0.5em 0;
535
  padding-right: 2rem;
536
  padding-left: 0;
 
537
  }
538
 
539
  .editor-surface li {
540
  margin-bottom: 0.25em;
 
541
  }
542
 
543
  .editor-surface[data-empty="true"]::before {
 
495
  letter-spacing: var(--letter-spacing-arabic);
496
  direction: rtl;
497
  text-align: right;
498
+ white-space: pre-wrap;
499
  word-wrap: break-word;
 
500
  overflow-y: auto;
501
  border-radius: 0;
502
  margin: 0;
 
525
  padding-right: 2rem;
526
  border-right: 3px solid var(--color-primary);
527
  border-left: none;
528
+ white-space: normal;
529
  }
530
 
531
  /* List styling inside editor */
 
534
  margin: 0.5em 0;
535
  padding-right: 2rem;
536
  padding-left: 0;
537
+ white-space: normal;
538
  }
539
 
540
  .editor-surface li {
541
  margin-bottom: 0.25em;
542
+ white-space: normal;
543
  }
544
 
545
  .editor-surface[data-empty="true"]::before {