fraudTech commited on
Commit
db66e65
·
1 Parent(s): 236960c

fix inline latex spacing issue

Browse files
Files changed (1) hide show
  1. web/src/App.css +7 -6
web/src/App.css CHANGED
@@ -538,12 +538,17 @@ body {
538
  }
539
 
540
  /* KaTeX Math Rendering Styles */
 
541
  .message-content .katex {
542
  font-size: 1.1em;
543
  color: #e8d4c0;
 
 
544
  }
545
 
 
546
  .message-content .katex-display {
 
547
  margin: 1rem 0;
548
  padding: 1rem;
549
  background: #1a1614;
@@ -552,14 +557,10 @@ body {
552
  overflow-x: auto;
553
  }
554
 
 
555
  .message-content .katex-display > .katex {
 
556
  text-align: center;
557
- color: #e8d4c0;
558
- }
559
-
560
- /* Inline math */
561
- .message-content .katex-inline {
562
- padding: 0 0.2rem;
563
  }
564
 
565
  /* Math operators and symbols */
 
538
  }
539
 
540
  /* KaTeX Math Rendering Styles */
541
+ /* Inline math - ensure proper spacing from surrounding text */
542
  .message-content .katex {
543
  font-size: 1.1em;
544
  color: #e8d4c0;
545
+ display: inline-block;
546
+ margin: 0 0.15em;
547
  }
548
 
549
+ /* Display math blocks */
550
  .message-content .katex-display {
551
+ display: block;
552
  margin: 1rem 0;
553
  padding: 1rem;
554
  background: #1a1614;
 
557
  overflow-x: auto;
558
  }
559
 
560
+ /* Reset margin for katex inside display blocks */
561
  .message-content .katex-display > .katex {
562
+ margin: 0;
563
  text-align: center;
 
 
 
 
 
 
564
  }
565
 
566
  /* Math operators and symbols */